Hacker News new | past | comments | ask | show | jobs | submit login

Re (3), no, :set paste does not fix his problem.



]p does, though.

That pastes with adjust indentation.


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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: