Vihaan Verma
Vihaan Verma

Reputation: 13143

vim put a line from current cursor position to next line

You can pull a line up in vim using Shift + j at the current line. How do you do the reverse i.e put all the words following cursor below the current line ?

Upvotes: 4

Views: 870

Answers (2)

romainl
romainl

Reputation: 196826

I go to the whitespace where I want to cut the line and hit r<CR>.

Upvotes: 9

daniel gratzer
daniel gratzer

Reputation: 53901

Doing this is a pretty simple, most people just enter insert mode, stick a newline in there and return to normal mode like this i<entr><esc> There isn't a faster way to do this, however if you really want, you can map this to a key in your vimrc.

Upvotes: 2

Related Questions