不久前,我不得不放
filetype plugin on
Run Code Online (Sandbox Code Playgroud)
在我的.vimrc中我使用的插件.
但这导致了autoindent的变化:每当我写一个评论"//",然后按回车键,vim autoindentation会在下一行自动输入另一个"//".
// This is a comment. <ENTER>
// <-- vim automatically puts '// ' there
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能避免这种情况?我在我的vim文件中使用autoindent设置.我已经试过了
filetype plugin indent off
Run Code Online (Sandbox Code Playgroud)
但它不起作用.
我的vimrc中有以下几行:
" Don't add the comment prefix when I hit enter or o/O on a comment line.
set formatoptions-=or
Run Code Online (Sandbox Code Playgroud)
它曾经在某个时候起作用.我不知道我做了什么,但它不再存在,我在创建换行符时仍然会收到评论.有什么可以禁用它?这是我的vimrc:http://pastebin.com/kVWWeQWW