From 50bd72cb28dfe368bb58237cb5e7d43976e8c8dd Mon Sep 17 00:00:00 2001 From: Kevin Yap Date: Fri, 24 Jun 2016 12:24:51 -0700 Subject: [PATCH] Symlink plug.vim as part of dotfiles script --- .gitignore | 1 + bin/dotfiles | 5 +++++ link/.vim/autoload/plug.vim | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) delete mode 120000 link/.vim/autoload/plug.vim diff --git a/.gitignore b/.gitignore index a02f306..cb8d879 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /backups/ # Ignore plugin submodules managed by vim-plug +link/.vim/autoload link/.vim/plugins # Miscellaneous files to ignore diff --git a/bin/dotfiles b/bin/dotfiles index 226da69..48e1b6a 100755 --- a/bin/dotfiles +++ b/bin/dotfiles @@ -152,6 +152,11 @@ function do_stuff() { # Do stuff. "$1_do" "$base" "$file" done + + # Manually fix symlink to ~/.vim/autoload/plug.vim + rm -f "$HOME/.vim/autoload/plug.vim" + mkdir -p "$HOME/.vim/autoload" + ln -s "$HOME/.dotfiles/vendor/vim-plug/plug.vim" "$HOME/.vim/autoload/plug.vim" } # Ensure that we can actually, like, compile anything. diff --git a/link/.vim/autoload/plug.vim b/link/.vim/autoload/plug.vim deleted file mode 120000 index aac3422..0000000 --- a/link/.vim/autoload/plug.vim +++ /dev/null @@ -1 +0,0 @@ -/Users/iKevinY/.dotfiles/vendor/vim-plug/plug.vim \ No newline at end of file -- 2.51.2