vim: remove local configs

I actually don't have a use case for this at the moment and removing it
avoids running arbitrary vimscript unintentionally. I can always add it
back later if a real world use case arises...
This commit is contained in:
Fernando Schauenburg 2021-10-27 10:11:32 +02:00
parent 2deb497b0e
commit 7d3659e2f3

View file

@ -1,7 +1,6 @@
if $XDG_CONFIG_HOME == "" | let $XDG_CONFIG_HOME="~/.config" | endif if $XDG_CONFIG_HOME == "" | let $XDG_CONFIG_HOME="~/.config" | endif
if $XDG_CACHE_HOME == "" | let $XDG_CACHE_HOME="~/.cache" | endif if $XDG_CACHE_HOME == "" | let $XDG_CACHE_HOME="~/.cache" | endif
if $XDG_DATA_HOME == "" | let $XDG_DATA_HOME="~/.local/share" | endif if $XDG_DATA_HOME == "" | let $XDG_DATA_HOME="~/.local/share" | endif
if $LOCAL_CONFIG == "" | let $LOCAL_CONFIG="~/.local/etc" | endif
" Options {{{ " Options {{{
set backspace=indent,eol,start " sane backspace behavior set backspace=indent,eol,start " sane backspace behavior
@ -210,9 +209,3 @@ augroup vimrc " {{{
autocmd BufWritePost init.vim source % autocmd BufWritePost init.vim source %
augroup END " }}} augroup END " }}}
for extra_vimrc in expand("$LOCAL_CONFIG/nvim/*", v:false, v:true)
if filereadable(extra_vimrc)
exec "source " . extra_vimrc
endif
endfor