Change local vimrc to $XDG_CONFIG_HOME/vim/vimrc.local

This commit is contained in:
Fernando Schauenburg 2020-03-04 12:04:15 +01:00
parent ad6e137d04
commit c6305ae9ad

View file

@ -241,7 +241,8 @@ augroup vimrc " {{{
autocmd BufWritePost vimrc source %
augroup END " }}}
if filereadable(expand("$XDG_CONFIG_HOME/vimrc.local"))
source $XDG_CONFIG_HOME/vimrc.local
let LOCAL_VIMRC=expand("$XDG_CONFIG_HOME/vim/vimrc.local")
if filereadable(LOCAL_VIMRC)
exec "source " . LOCAL_VIMRC
endif