Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用标记的Macvim空间缩进_Vim_Macvim - Fatal编程技术网

使用标记的Macvim空间缩进

使用标记的Macvim空间缩进,vim,macvim,Vim,Macvim,我正在使用Macvim编辑Markdown,我想知道我是否可以设置它,这样每当我输入时,上一行的空格缩进都会保持不变。我不想对每一行都使用TAB。谢谢。尝试启用自动缩进选项: :set autoindent 或: Vim手册中的说明: 'autoindent' 'ai' boolean (default off) local to buffer Copy indent from current line when starting a new line (typing &l

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

尝试启用
自动缩进
选项:

:set autoindent
或:

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). 
“自动缩进”“ai”布尔值(默认关闭)
本地到缓冲区
开始新行时从当前行复制缩进(键入
在插入模式下或使用“o”或“o”命令时)。
'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).