Thursday, October 27, 2011

Re: question about vim scripts.

I got an idea. just write several lines at the begging of .vimrc file:
if !exists("g:already_read_vimrc")
let g:already_read_vimrc=1
finish
endif

On 10月26日, 下午7时44分, gaoqiang <gaoqiangs...@gmail.com> wrote:
> running command "scriptnames" ,I got the following output.
> $HOME/.vimrc is read first. which means,my own settings may be covered
> by other vim-script. and that is not what I want. anyone can help?
> just make the $HOME/.vimrc read last.
>
> 1: /usr/home/
> gaoqiang/.vimrc
> 2: /usr/home/gaoqiang/.vim/plugin/colorsel.vim
> 3: /usr/home/gaoqiang/.vim/plugin/conque_term.vim
> 4: /usr/home/gaoqiang/.vim/plugin/csExplorer.vim
> 5: /usr/home/gaoqiang/.vim/plugin/matrix.vim
> 6: /usr/home/gaoqiang/.vim/plugin/taglist.vim
> 7: /usr/home/gaoqiang/.vim/plugin/txt.vim
> 8: /usr/local/share/vim/vim72/plugin/getscriptPlugin.vim
> 9: /usr/local/share/vim/vim72/plugin/gzip.vim
> 10: /usr/local/share/vim/vim72/plugin/matchparen.vim
> 11: /usr/local/share/vim/vim72/plugin/netrwPlugin.vim
> 12: /usr/local/share/vim/vim72/plugin/rrhelper.vim
> 13: /usr/local/share/vim/vim72/plugin/spellfile.vim
> 14: /usr/local/share/vim/vim72/plugin/taglist.vim
> 15: /usr/local/share/vim/vim72/plugin/tarPlugin.vim
> 16: /usr/local/share/vim/vim72/plugin/tohtml.vim
> 17: /usr/local/share/vim/vim72/plugin/vimballPlugin.vim
> 18: /usr/local/share/vim/vim72/plugin/zipPlugin.vim
> 19: /usr/home/gaoqiang/.vim/after/plugin/vimrc.vim
> 20: /usr/local/share/vim/vim72/colors/desert.vim
> 21: /usr/local/share/vim/vim72/filetype.vim
> 22: /usr/local/share/vim/vim72/ftplugin.vim
> 23: /usr/local/share/vim/vim72/syntax/syntax.vim
> 24: /usr/local/share/vim/vim72/syntax/synload.vim
> 25: /usr/local/share/vim/vim72/syntax/syncolor.vim

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment