I have automatic indentation in my .vimrc
set autoindent
file, which moves to the previous indent like this ( β
- cursor position)
while (! skynet.selfAware()){ DARPA.funding++;β }
Pressing the carriage input / return button will give
while (! skynet.selfAware()){ DARPA.funding++; β }
But is there a way to make vim smart enough to realize that a new indentation is required, so starting with that
while (! skynet.selfAware()){β }
pressing the enter / return carriage key will give
while (! skynet.selfAware()){ β }
instead
while (! skynet.selfAware()){ β }
source share