Sfoglia il codice sorgente

Revert vim plugin install simplification

There was a reason those extra options (nocompat, only load plugins.vim)
where there: for fresh dotfiles installs which don't have plugins
downloaded yet, some things, like the setting of the solarized
colourscheme throw errors.
Weiyi Lou 9 anni fa
parent
commit
5998c8f799
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2 1
      Makefile
  2. 2 1
      install

+ 2 - 1
Makefile

@@ -79,7 +79,8 @@ vim:
 	@./bin/linkup ~/dotfiles/vim ~/.vim
 	@./bin/linkup ~/dotfiles/vim/vimrc ~/.vimrc
 	@./bin/linkup ~/dotfiles/vim $(XDG_CONFIG_HOME)/nvim
-	@vim +PlugClean! +PlugUpdate! +quitall!
+	@# Use barebones config to avoid vimrc errors on fresh dotfiles installs.
+	@vim -N -u ~/dotfiles/vim/plugins.vim +PlugClean! +PlugUpdate! +quitall!
 rm-vim:
 	rm ~/.vim
 	rm ~/.vimrc

+ 2 - 1
install

@@ -41,6 +41,7 @@ echo "Git config done."
 ~/dotfiles/bin/linkup ~/dotfiles/vim ~/.vim
 ~/dotfiles/bin/linkup ~/dotfiles/vim/vimrc ~/.vimrc
 ~/dotfiles/bin/linkup ~/dotfiles/vim $XDG_CONFIG_HOME/nvim
-vim +PlugClean! +PlugUpdate! +quitall!
+# Use barebones config to avoid vimrc errors on fresh dotfiles installs.
+vim -N -u ~/dotfiles/vim/plugins.vim +PlugClean! +PlugUpdate! +quitall!
 
 echo "Install complete!"