如何让Vim直接获取我的.vimrc?

时间:2016-06-05 10:58:54

标签: vim homebrew vi

我想从<i></i>元素中删除颜色反转。我已将highlight htmlItalic ctermbg=NONE行添加到.vimrc,但当我加载多个文件时,请说file1.htmlfile2.html<i></i>将不会有反转的颜色。但是,如果我键入:bn :bn以转到下一个缓冲区然后返回,<i></i>将再次反转。我必须输入:source ~/.vimrc才能将其更改回来。我该如何阻止它?

scriptnames的结果是:

1: ~/.vimrc
2: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/syntax.vim
3: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/synload.vim
4: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/syncolor.vim
5: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/filetype.vim
6: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/colors/zellner.vim
7: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftoff.vim
8: ~/.vim/bundle/vundle/autoload/vundle.vim
9: ~/.vim/bundle/vundle/autoload/vundle/config.vim
10: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftplugin.vim
11: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/indent.vim
12: ~/.vim/plugin/RltvNmbr.vim
13: ~/.vim/autoload/RltvNmbr.vim
14: ~/.vim/plugin/RltvNmbrPlugin.vim
15: ~/.vim/bundle/auto-pairs/plugin/auto-pairs.vim
16: ~/.vim/bundle/nerdcommenter/plugin/NERD_commenter.vim
17: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/getscriptPlugin.vim
18: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/gzip.vim
19: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/logiPat.vim
20: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/manpager.vim
21: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/matchparen.vim
22: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/netrwPlugin.vim
23: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/rrhelper.vim
24: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/spellfile.vim
25: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/tarPlugin.vim
26: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/tohtml.vim
27: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/vimballPlugin.vim
28: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/zipPlugin.vim
29: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/scripts.vim
30: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/vim.vim
31: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/perl.vim
32: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/pod.vim
33: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/ruby.vim
34: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/python.vim
35: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftplugin/vim.vim
36: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/indent/vim.vim
37: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/nosyntax.vim

我正在使用最新版本的vim via。自制,并没有使用gvim。 谢谢!

0 个答案:

没有答案