在移动到新行时保留缩进的选项的名称是什么。
示例
Subject
This is indented and now i press enter
I would like indentation to happen automatically
Subject
This is indented and now i press enter
I currently start here here and indent manually
答案 0 :(得分:2)
从手册(:help indent.txt
):
autoindent
使用上一行的缩进
...这样:
:set autoindent
如果这不起作用,请尝试在没有插件的情况下启动Vim
并跳过.vimrc
初始化:
vim -u NONE -N