Setting up Taglist plugin to work with vala

喜欢而已 提交于 2019-12-12 17:17:02

问题


Like the title says,I would like to develop vala with vim.My productivity is badly affected due to the lack Taglist plugin support for vala. I found a ctags implementation in valide, http://bazaar.launchpad.net/~valide/valide/trunk/files/head:/ctags-vala/

Can anyone guide me how to make this ctag implemention work with Taglist or some other vim plugin which works for vala


回答1:


Found the answer, set this is .vimrc

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'



回答2:


I did have the same needs, and I found this site : http://sophiaongnome.wordpress.com/2012/01/31/how-do-i-set-up-my-vala-ide-in-vim/

The guy uses Tagbar in Vim, and anjuta-ctags which implement ctags for Vala.

I give you also my Vim configuration for Vala:

set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
map <leader><F2> :lvimgrep! <cword> /usr/share/vala-0.16/vapi/*<CR> :lopen <CR>
set complete+=k/home/marc/.vim/syntax/vala.vim
set isk+=(
" Disable valadoc syntax highlight
"let vala_ignore_valadoc = 1

" Enable comment strings
let vala_comment_strings = 1

" Highlight space errors
let vala_space_errors = 1
" Disable trailing space errors
"let vala_no_trail_space_error = 1
" Disable space-tab-space errors
let vala_no_tab_space_error = 1

" Minimum lines used for comment syncing (default 50)
"let vala_minlines = 120

let g:tagbar_ctags_bin="anjuta-tags"
set iskeyword+=.


来源:https://stackoverflow.com/questions/5442936/setting-up-taglist-plugin-to-work-with-vala

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!