Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Macvim 编辑 Markdown,我可能知道无论如何我可以设置它,这样每当我输入时,前一行的空格缩进就会保持不变。我不想对每一行都使用 TAB。谢谢。
尝试启用该autoindent选项:
autoindent
:set autoindent
或者:
:set ai
Vim手册的解释:
'autoindent' 'ai' boolean (default off) local to buffer Copy indent from current line when starting a new line (typing <CR> in Insert mode or when using the "o" or "O" command).