I setup vim to auto update tags follow
http://vim.wikia.com/wiki/Autocmd_to_update_ctags_file
when i write to .c file, tags file not changed.
I add one line "echo _resp" like this:
function! UPDATE_TAGS()
    let _f_ = expand("%:p")
    let _cmd_ = '"ctags -a -f ./tags --c++-kinds=+p --fields=+iaS --extra=+q " 
' . '"' . _f_ . '"'
    let _resp = system(_cmd_)
    unlet _cmd_
    unlet _f_
    echo _resp
    unlet _resp
endfunction
autocmd BufWritePost *.cpp,*.h,*.c call UPDATE_TAGS()
Then write .c file, vim tell me
>"main.c" 4L, 30C written
>/bin/bash: ctags -a -f ./tags --c++-kinds=+p --fields=+iaS --extra=+q : No 
>such file or directory
I don't know which file ctags not found.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to