Installing ctag utility
Follow the
instructions:
1.
Extract the tar contents by executing tar
command
tar –xvzf ctags-5.8.tar.gz
2.
change directory to ctags-5.8 and execute
following command to install ctags
./configure
make
make install
3.
If the ctag installation uses non-standard
location, Setup .vimrc as per installed ctag binary path: set the following
path variable in .vimrc
let Tlist_Ctags_Cmd = "//bin/ctags"
Few tips to setup .vimrc for indentation, line
numbers, syntax highlighting etc
Example .vimrc
set nocompatible | filetype indent plugin on | syn on |
set nu
set shiftwidth=4
set tabstop=4
let Tlist_Ctags_Cmd = "/opt/rhel/bin/ctags"
nnoremap:TlistToggle
Installing vim-taglist plugin
Download and
install taglist plugin for vim version 6.0 or above, download location: http://sourceforge.net/projects/vim-taglist/files/
Follow the
instructions as:
1.
Copy the downloaded file to your home directory
containing .vim directory
2.
Extract the zip contents
3.
The unzip contains plugin/taglist.vim file (main
taglist plugin file) and doc/taglist.txt (documentation file)
4.
Open any source code file in vim and use ‘:TlistToggle’
to open-close tag list window.
No comments:
Post a Comment