Noah Vogt 3 éve
szülő
commit
c0c5021c99
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      dot-config/vim/vimrc

+ 5 - 0
dot-config/vim/vimrc

@@ -27,6 +27,11 @@ set nobackup
 set incsearch
 set incsearch
 set spelllang=de_ch,en
 set spelllang=de_ch,en
 
 
+" Run PlugInstall if there are missing plugins
+autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
+  \| PlugInstall --sync | source $XDG_CONFIG_HOME/vim/vimrc
+\| endif
+
 " getting plugins
 " getting plugins
 call plug#begin('~/.cache/vim/plugged')
 call plug#begin('~/.cache/vim/plugged')