Le .vimrc par défaut sous Debian source la configuration système:
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing debian.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
et
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
Du coup, la solution ci-dessus semble être la solution standard. Perso, j'utilise ça:
if filereadable("/home/my_user/.customVimrc")
source /home/my_user/.customVimrc
endif
[^] # Re: :h source
Posté par Ben Doumenc (site web personnel) . En réponse au message VIM et _vimrc sous windows. Évalué à 2.
Le .vimrc par défaut sous Debian source la configuration système:
et
Du coup, la solution ci-dessus semble être la solution standard. Perso, j'utilise ça: