I have set autoindent
in my .vimrc
Say I'm on an indented line in Vim in insert mode. If I make a bunch of new lines by pressing enter, it'll keep my cursor indented. However, lines between my current line and the original line lose their indents. This doesn't happen with Notepad++
|
indicates the indent on the empty lines.
Vim:
function f()
{
var x;
|
|
|
|//cursor
Notepad++:
function f()
{
var x;
|
|
|
|//cursor
How do I get Vim to behave like Notepad++?