From 7d3659e2f320560dbd63328cf47ec9ebba168169 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Wed, 27 Oct 2021 10:11:32 +0200 Subject: [PATCH] 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... --- nvim/init.vim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 61a2d04..f07af78 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,7 +1,6 @@ if $XDG_CONFIG_HOME == "" | let $XDG_CONFIG_HOME="~/.config" | endif if $XDG_CACHE_HOME == "" | let $XDG_CACHE_HOME="~/.cache" | endif if $XDG_DATA_HOME == "" | let $XDG_DATA_HOME="~/.local/share" | endif -if $LOCAL_CONFIG == "" | let $LOCAL_CONFIG="~/.local/etc" | endif " Options {{{ set backspace=indent,eol,start " sane backspace behavior @@ -210,9 +209,3 @@ augroup vimrc " {{{ autocmd BufWritePost init.vim source % augroup END " }}} -for extra_vimrc in expand("$LOCAL_CONFIG/nvim/*", v:false, v:true) - if filereadable(extra_vimrc) - exec "source " . extra_vimrc - endif -endfor -