0

我正在使用 Macvim 编辑 Markdown,我可能知道无论如何我可以设置它,这样每当我输入时,前一行的空格缩进就会保持不变。我不想对每一行都使用 TAB。谢谢。

4

1 回答 1

2

尝试启用该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). 
于 2013-11-01T15:13:06.963 回答