Question

This question describes how auto indent is ignored with empty lines, using his/her example:

....{
....█
....}

becomes

....{
█
....}

when no text is entered. Apparently this is supposed to prevent having indented blank lines. Problem is it interferes with my ability to paste words/lines properly. If I yank a word (lets say 'aardvark'), if I paste on the first line, I get

....{aardvark
....}

and if I press 'o' then 'p' to paste on the second line, I get

....{
aardvark
....}

when what I really want is

....{
....aardvark
....}

I have a similar problem pasting lines two lines down.

Was it helpful?

Solution

Maybe you'll like to use oCTRL-R" instead of oESCp. See :help i_CTRL-R, :help registers

OTHER TIPS

Yank lines, then press ]p instead of p.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top