aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-09-26 13:12:29 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-09-26 14:08:28 +0200
commit4c8a774222435098a077e8f10cca6518393952fa (patch)
tree9b531825c85bda5845e1b8d233a49e3a3322b111 /install
parent29c59d0f2cdfd75c5e3ae310558f5cae67f1637e (diff)
downloadmyconfigs-4c8a774222435098a077e8f10cca6518393952fa.tar.gz
myconfigs-4c8a774222435098a077e8f10cca6518393952fa.tar.bz2
myconfigs-4c8a774222435098a077e8f10cca6518393952fa.zip
vim: use vundle
Diffstat (limited to 'install')
-rwxr-xr-xinstall14
1 files changed, 6 insertions, 8 deletions
diff --git a/install b/install
index 1433897..2759903 100755
--- a/install
+++ b/install
@@ -39,19 +39,17 @@ fi
YCM_PATH=~/.vim/bundle/YouCompleteMe
if ask "Install VIM scripts"; then
- # See if we have anything different from what we have in repository
- YCM_REV="$(cd $YCM_PATH && git --work-tree=. diff --exit-code -s && echo y)"
inst vimrc ~/.vimrc
inst vim/ ~/.vim
inst local/bin/vim-project-gen ~/.local/bin/vim-project-gen
mkdir -p ~/.cache/vim # directory for *.swp files
mkdir -p ~/.cache/vim-undo # directory for undo files
- if [ "$YCM_REV" != "y" ]; then (
- cd $YCM_PATH
- ./install.py --clang-completer --system-libclang
- ); else
- echo "YouCompleteMe is not required to be recompiled"
- fi
+ # Vim plugin manager
+ [ -d ~/.vim/bundle/Vundle.vim ] || {
+ mkdir -p ~/.vim/bundle
+ git clone "https://github.com/VundleVim/Vundle.vim.git" ~/.vim/bundle/Vundle.vim
+ }
+ vim +PluginInstall +qall
fi
if ask "Install email synchronization"; then