From 5252fc0b139c4e018c6b157cf5485b4b04433dec Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 26 Sep 2012 17:15:19 +0400 Subject: [PATCH] Vim tagbar. --- .vim/autoload/tagbar.vim | 31 +++++++++++++++++++++++++++++++ .vimrc | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 .vim/autoload/tagbar.vim diff --git a/.vim/autoload/tagbar.vim b/.vim/autoload/tagbar.vim new file mode 100644 index 0000000..eae549c --- /dev/null +++ b/.vim/autoload/tagbar.vim @@ -0,0 +1,31 @@ +" Vala {{{3 + let type_vala = {} + let type_vala.ctagstype = 'vala' + let type_vala.kinds = [ + \ {'short' : 'c', 'long' : 'classes', 'fold' : 0}, + \ {'short' : 'd', 'long' : 'delegates', 'fold' : 0}, + \ {'short' : 'e', 'long' : 'enumerations', 'fold' : 0}, + \ {'short' : 'E', 'long' : 'error domains', 'fold' : 0}, + \ {'short' : 'f', 'long' : 'fields', 'fold' : 0}, + \ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0}, + \ {'short' : 'm', 'long' : 'methods', 'fold' : 0}, + \ {'short' : 'p', 'long' : 'properties', 'fold' : 0}, + \ {'short' : 'r', 'long' : 'error codes', 'fold' : 0}, + \ {'short' : 's', 'long' : 'structures', 'fold' : 0}, + \ {'short' : 'S', 'long' : 'signals', 'fold' : 0}, + \ {'short' : 'v', 'long' : 'enumeration values', 'fold' : 0} + \ ] + let type_vala.sro = '.' + let type_vala.kind2scope = { + \ 'i' : 'interface', + \ 'c' : 'class', + \ 's' : 'structure', + \ 'e' : 'enum' + \ } + let type_vala.scope2kind = { + \ 'interface' : 'i', + \ 'class' : 'c', + \ 'struct' : 's', + \ 'enum' : 'e' + \ } + let s:known_types.vala = type_vala diff --git a/.vimrc b/.vimrc index 03003e3..ca07549 100644 --- a/.vimrc +++ b/.vimrc @@ -194,3 +194,7 @@ let vala_no_tab_space_error = 1 let tlist_vala_settings='c#;d:macro;t:typedef;n:namespace;c:class;'. \ 'E:event;g:enum;s:struct;i:interface;'. \ 'p:properties;m:method' + +" ----- TagBar ------ +nmap :TagbarToggle +let g:tagbar_ctags_bin = "anjuta-tags"