Added sudo capability to vimrc
This commit is contained in:
parent
d84f6b0620
commit
d88349d41b
1 changed files with 24 additions and 9 deletions
15
vimrc
15
vimrc
|
@ -1,3 +1,17 @@
|
||||||
|
if file_readable('/home/' . $SUDO_USER . '/.vimrc')
|
||||||
|
set runtimepath+=/home/$SUDO_USER/.vim_runtime
|
||||||
|
|
||||||
|
source /home/$SUDO_USER/.vim_runtime/vimrcs/basic.vim
|
||||||
|
source /home/$SUDO_USER/.vim_runtime/vimrcs/filetypes.vim
|
||||||
|
source /home/$SUDO_USER/.vim_runtime/vimrcs/plugins_config.vim
|
||||||
|
source /home/$SUDO_USER/.vim_runtime/vimrcs/extended.vim
|
||||||
|
|
||||||
|
try
|
||||||
|
source /home/$SUDO_USER/.dotfiles/my_configs.vim
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
|
|
||||||
|
else
|
||||||
set runtimepath+=~/.vim_runtime
|
set runtimepath+=~/.vim_runtime
|
||||||
|
|
||||||
source ~/.vim_runtime/vimrcs/basic.vim
|
source ~/.vim_runtime/vimrcs/basic.vim
|
||||||
|
@ -9,3 +23,4 @@ try
|
||||||
source ~/.dotfiles/my_configs.vim
|
source ~/.dotfiles/my_configs.vim
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue