0

我尝试使用具有自动缩进功能的 vim,该功能运行良好。但我觉得很烦人的是,在某些情况下它也会删除缩进,因为它会产生额外的工作。例如,当我有一个缩进的行时,我转到行尾并键入然后 vim 删除行的缩进。如何关闭现有缩进的删除?

4

1 回答 1

0

你试过:

:set noautoindent   
:set noai  #same as above

或者尝试使用智能缩进

:set nosmartindent
:set nosi  #same
于 2012-04-07T15:04:30.887 回答