From 6a29c792ceda37c34baba2620b2233895c6dd770 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 27 Mar 2022 00:22:07 +0800 Subject: Add tagbar into vim packages --- .vim/after/plugin/airline.vim | 3 +++ .vim/after/plugin/input-method.vim | 10 ++++++++++ .vim/after/plugin/misc.vim | 12 ------------ .vim/after/plugin/tagbar.vim | 4 ++++ bin/vim-pack | 1 + 5 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 .vim/after/plugin/airline.vim create mode 100644 .vim/after/plugin/input-method.vim delete mode 100644 .vim/after/plugin/misc.vim create mode 100644 .vim/after/plugin/tagbar.vim diff --git a/.vim/after/plugin/airline.vim b/.vim/after/plugin/airline.vim new file mode 100644 index 0000000..6de5f3f --- /dev/null +++ b/.vim/after/plugin/airline.vim @@ -0,0 +1,3 @@ +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tagbar#enabled = 1 + diff --git a/.vim/after/plugin/input-method.vim b/.vim/after/plugin/input-method.vim new file mode 100644 index 0000000..8497659 --- /dev/null +++ b/.vim/after/plugin/input-method.vim @@ -0,0 +1,10 @@ +" fcitx.vim +if !empty(glob('/usr/bin/fcitx5')) + packadd fcitx.vim +endif + +" smartim +if has('mac') + packadd smartim + let g:smartim_default = 'com.apple.keylayout.ABC' +endif diff --git a/.vim/after/plugin/misc.vim b/.vim/after/plugin/misc.vim deleted file mode 100644 index f34ec9f..0000000 --- a/.vim/after/plugin/misc.vim +++ /dev/null @@ -1,12 +0,0 @@ -let g:airline#extensions#tabline#enabled = 1 - -" fcitx.vim -if !empty(glob('/usr/bin/fcitx5')) - packadd fcitx.vim -endif - -" smartim -if has('mac') - packadd smartim - let g:smartim_default = 'com.apple.keylayout.ABC' -endif diff --git a/.vim/after/plugin/tagbar.vim b/.vim/after/plugin/tagbar.vim new file mode 100644 index 0000000..6ed56d8 --- /dev/null +++ b/.vim/after/plugin/tagbar.vim @@ -0,0 +1,4 @@ +let g:tagbar_autoclose = 1 +let g:tagbar_autofocus = 1 + +nnoremap s :TagbarToggle diff --git a/bin/vim-pack b/bin/vim-pack index 00426ee..9eda443 100755 --- a/bin/vim-pack +++ b/bin/vim-pack @@ -112,6 +112,7 @@ update_package org.vim https://github.com/axvr/org.vim.git & update_package fcitx.vim https://github.com/lilydjwg/fcitx.vim.git opt & update_package smartim https://github.com/ybian/smartim.git opt & update_package vim-table-mode https://github.com/dhruvasagar/vim-table-mode.git & +update_package tagbar https://github.com/preservim/tagbar & wait vim '"+helptags ALL"' +q -- cgit v1.2.3