Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

How to prevent an extra newline from being appended to macros ending with a newline? [duplicate]

If I save a macro by typing: :let @s='/{<C-v><C-m>'<Enter> which looks like: :let @s='/{^M' the macro that is actually saved is /{^M^M, with an extra linebreak (that I did not type)...
ban_javascript's user avatar
0 votes
2 answers
587 views

How to insert a blank line above another line

I have these lines; Question1. Is this true? a. Yes b. No Question2. How is the weather a. Good b. Bad Question3. The sky is a. Dark b. Blue I wanted to change it to; Question1. Is this true? a. Yes ...
atheros's user avatar
  • 125
15 votes
4 answers
35k views

How to split a line into multiple lines efficiently?

I've been receiving logged data in a text file that is just one long line with each value separated by a space. Is there a command or set of commands that will split one line into multiple lines?
Dom's user avatar
  • 3,384