Then I press [Enter] in insert mode, there is a new line. But cursor places in the very beginning of a line. What do I do to create new line with the same indentation as the current's?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
add |
|||
|
Both will annoy you when pasting (as vim will try and indent everything on the fly). So prior to pasting: :set paste |
|||
|
|
|
I'd also suggest adding this to your .vimrc:
It will increase the indent in a new block. |
|||
|
|
~/.vimrcfile. – Telemachus Jan 23 '10 at 21:24