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 ++++ 4 files changed, 17 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 (limited to '.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 -- cgit v1.2.3