不久前,我不得不放
filetype plugin on
在我的.vimrc中我使用的插件。
但这导致了autoindent的变化,这让我很生气:每当我写一个评论“//”,然后按回车键,vim autoindentation会在下一行自动输入另一个“//”。 但是,嘿,我正在使用单行注释,为什么我会在下一行再次使用它(好的,这里没有讨论;))?
// This is a comment. <ENTER>
// <-- vim automatically puts '// ' there
我该怎么做才能避免这种情况? 我在我的vim文件中使用autoindent设置。 我已经试过了
filetype plugin indent off
但它不起作用。