vim: move local config to ~/.local/etc/vim/vimrc

This commit is contained in:
Fernando Schauenburg 2020-12-12 22:47:23 +01:00
parent e601612535
commit f52ebc6672

View file

@ -2,6 +2,7 @@ set nocompatible
if $XDG_CONFIG_HOME == "" | let $XDG_CONFIG_HOME="~/.config" | endif
if $XDG_CACHE_HOME == "" | let $XDG_CACHE_HOME="~/.cache" | endif
if $LOCAL_CONFIG == "" | let $LOCAL_CONFIG="~/.local/etc" | endif
let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
@ -247,7 +248,7 @@ augroup vimrc " {{{
autocmd BufWritePost vimrc source %
augroup END " }}}
let LOCAL_VIMRC=expand("$XDG_CONFIG_HOME/vim/vimrc.local")
let LOCAL_VIMRC=expand("$LOCAL_CONFIG/vim/vimrc")
if filereadable(LOCAL_VIMRC)
exec "source " . LOCAL_VIMRC
endif