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.
我尝试使用具有自动缩进功能的 vim,该功能运行良好。但我觉得很烦人的是,在某些情况下它也会删除缩进,因为它会产生额外的工作。例如,当我有一个缩进的行时,我转到行尾并键入然后 vim 删除行的缩进。如何关闭现有缩进的删除?
你试过:
:set noautoindent :set noai #same as above
或者尝试使用智能缩进
:set nosmartindent :set nosi #same