Sunday 25 September 2016

Make VIM into an IDE



(1) ctags

$sudo apt-get install exuberant-ctags

> Now go to the directory with the source files, go into it, not one level out it. And use:
    $ctags -R *

  -R indicates recursively, which means the subdirectories are also searched. And we can see a new file naned "tags".

Here are some useful cmds for ctags:

Ctrl + ]
Ctrl + t
:tag function_name 
:ta function_name












ref:
http://blog.csdn.net/daniel_ustc/article/details/8299096
https://andrew.stwrt.ca/posts/vim-ctags/



No comments:

Post a Comment