Vim tagbar.

This commit is contained in:
Kolan Sh 2012-09-26 17:15:19 +04:00
parent 98ee157bab
commit 5252fc0b13
2 changed files with 35 additions and 0 deletions

31
.vim/autoload/tagbar.vim Normal file
View File

@ -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

4
.vimrc
View File

@ -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 <F9> :TagbarToggle<CR>
let g:tagbar_ctags_bin = "anjuta-tags"