diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-11-15 11:42:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-11-15 11:42:58 +0100 |
commit | d655bbb3bbe46cec77c04e2354ddaa8875f5aa29 (patch) | |
tree | 361fd317c0b059ba0afa78210228f43ad44cbde8 | |
parent | c3054dae36d930c689b8a60fbf156c531a081359 (diff) | |
download | dotfiles-d655bbb3bbe46cec77c04e2354ddaa8875f5aa29.tar.gz |
vim plugin management
l--------- | .vim/bundle-active/vim-pathogen | 1 | ||||
-rw-r--r-- | .vim/vimrc | 6 | ||||
-rw-r--r-- | bash/vim-plugins.bash | 21 |
3 files changed, 23 insertions, 5 deletions
diff --git a/.vim/bundle-active/vim-pathogen b/.vim/bundle-active/vim-pathogen new file mode 120000 index 0000000..302f26a --- /dev/null +++ b/.vim/bundle-active/vim-pathogen @@ -0,0 +1 @@ +../bundle/vim-pathogen/
\ No newline at end of file @@ -2,17 +2,13 @@ " VARIABLES " =========== runtime bundle/vim-pathogen/autoload/pathogen.vim -execute pathogen#infect() +execute pathogen#infect('bundle-active/{}') set nocompatible "Disable bell set vb set t_vb= -"Search in all of the project tree -set path+=** -set wildmenu - set ttimeoutlen=10 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#branch#enabled = 1 diff --git a/bash/vim-plugins.bash b/bash/vim-plugins.bash new file mode 100644 index 0000000..f987531 --- /dev/null +++ b/bash/vim-plugins.bash @@ -0,0 +1,21 @@ +function vim-add() { + source ~/.files + + local NAME=$(basename "$1") + + [ -d "$DOTFILEBASE/.vim/bundle/$NAME" ] || return 1 # no such plugin + + local OLD_PWD=$(pwd) + cd "$DOTFILEBASE/.vim/bundle-active/" + [ -L $NAME ] && cd "$OLD_PWD" && return 2 # Already exists + + ln -s "../bundle/$NAME" + + cd "$OLD_PWD" +} + +function vim-remove { + source ~/.files + + local NAME=$(basename "$1") +} |