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?
|
feedback
|
|
add | |||||
|
feedback
|
|
Both will annoy you when pasting (as vim will try and indent everything on the fly). So prior to pasting: :set paste | |||
|
feedback
|
|
I'd also suggest adding this to your .vimrc:
It will increase the indent in a new block. | |||
|
feedback
|
~/.vimrcfile. – Telemachus Jan 23 '10 at 21:24