Skip to main content
added 1 character in body
Source Link
Vivian De Smedt
  • 21.1k
  • 5
  • 22
  • 40

As a replacement of:

:%norm!/https^Mdi"Vp

I would propose you:

:exe 'norm'%norm!/https' . "\<CR>" . 'di"Vp'

The "" converts escpaped sequence \<CR> into ^M.

As a replacement of:

:%norm!/https^Mdi"Vp

I would propose you:

:exe 'norm!/https' . "\<CR>" . 'di"Vp'

The "" converts escpaped sequence \<CR> into ^M.

As a replacement of:

:%norm!/https^Mdi"Vp

I would propose you:

:exe '%norm!/https' . "\<CR>" . 'di"Vp'

The "" converts escpaped sequence \<CR> into ^M.

added 111 characters in body
Source Link
Vivian De Smedt
  • 21.1k
  • 5
  • 22
  • 40

As a replacement of:

:%norm!/https^Mdi"Vp

I would propose you:

:exe 'norm! /https' . "\<CR>" . 'di"Vp'

The "" converts escpaped sequence \<CR> into ^M.

I would propose you:

:exe 'norm! /https' . "\<CR>" . 'di"Vp'

As a replacement of:

:%norm!/https^Mdi"Vp

I would propose you:

:exe 'norm!/https' . "\<CR>" . 'di"Vp'

The "" converts escpaped sequence \<CR> into ^M.

Source Link
Vivian De Smedt
  • 21.1k
  • 5
  • 22
  • 40

I would propose you:

:exe 'norm! /https' . "\<CR>" . 'di"Vp'