vim: move local config to ~/.local/etc/vim/vimrc
This commit is contained in:
parent
e601612535
commit
f52ebc6672
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue