.{cpp,h}
当我在文件中的单行注释末尾开始新行时,vim
会自动对其进行注释。例如:
// This is a comment<CR>
// | <- Cursor is moved to `|`, `//` is automatically inserted.
我不确定这是插件还是设置。我在 my 中看不到任何看起来会执行此操作的内容~/.vimrc
,并且加载的插件在下面列出。
我喜欢这种/* */
风格的多行注释,但我不希望我的单行注释默认运行在多行上。
哪个设置(或插件)可以做到这一点,我可以只为这种评论类型关闭它吗?
:scriptnames
给出了这个:
1: /Users/simont/.vimrc
2: /usr/local/share/vim/vim73/syntax/syntax.vim
3: /usr/local/share/vim/vim73/syntax/synload.vim
4: /usr/local/share/vim/vim73/syntax/syncolor.vim
5: /usr/local/share/vim/vim73/filetype.vim
6: /usr/local/share/vim/vim73/ftplugin.vim
7: /usr/local/share/vim/vim73/syntax/nosyntax.vim
8: /Users/simont/repositories/config-files/vim/colors/solarized.vim
9: /usr/local/share/vim/vim73/plugin/getscriptPlugin.vim
10: /usr/local/share/vim/vim73/plugin/gzip.vim
11: /usr/local/share/vim/vim73/plugin/matchparen.vim
12: /usr/local/share/vim/vim73/plugin/netrwPlugin.vim
13: /usr/local/share/vim/vim73/plugin/rrhelper.vim
14: /usr/local/share/vim/vim73/plugin/spellfile.vim
15: /usr/local/share/vim/vim73/plugin/tarPlugin.vim
16: /usr/local/share/vim/vim73/plugin/tohtml.vim
17: /usr/local/share/vim/vim73/plugin/vimballPlugin.vim
18: /usr/local/share/vim/vim73/plugin/zipPlugin.vim
19: /usr/local/share/vim/vim73/scripts.vim
20: /usr/local/share/vim/vim73/ftplugin/vim.vim
21: /usr/local/share/vim/vim73/syntax/vim.vim