Re:Vim is the worst editor, except all the other editors
by ezyang on Thursday September 12, 2013 @05:01AM
(#6372920)
Re (3), no, :set paste does not fix his problem.
[ Parent
| on HN ]
Re:Vim is the worst editor, except all the other editors
by merijnv on Thursday September 12, 2013 @05:45AM
(#6373082)
]p does, though.
That pastes with adjust indentation.
Re:Vim is the worst editor, except all the other editors
by IanCal on Thursday September 12, 2013 @05:23AM
(#6372997)
I've just re-read the problem, I thought he was talking about vim automatically indenting everything.
It should be reasonably easy to create a function for this though, prefix each line in the buffer with 'indent(".")' spaces, or copy the whitespace at the beginning of the current line.