Fork me on GitHub

Vim-Php The intersection between two beautiful communities


Simple flow to generate, update and load ctags

12 Mar 2015 - Tags: vim,php,ctags,gianarb - Author: GianArb


Hi! I use this codeto generate (“, tags”) ctags file.

map <Leader>tags :!ctags -R --languages= .<LEFT><LEFT>

After every saved if exists a tags file I update tags with last modified.

autocmd BufWritePost * if filereadable('tags') | exec ':silent ! ctags -a %' | endif

If tags file exists I load it in my session of work

if filereadable("./tags")
    set tags+=./tags
endif