Article Title: programming vim + ctags + taglist (ubuntu) in shell ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Editor: vi plug-in to be added by vi: ctags, taglist
Ctags: ctags.sourceforge.net // generate code index Taglist: vim-taglist.sourceforge.net//code browsing
First, download these two plug-ins online, compile and install them
1. ctags:
Download ctags-5.6.tag.gz
Tar xzvf ctags-5.6.tag.gz
Cd ctags-5.6
./Configure
Make
Sudo make install
The directories may be different during specific operations.
2. taglist:
Cd ~
Mkdir. vim
Cd. vim
Mkdir plugin
Unzip (custom path)/taglist_42.zip
Ls
// After decompression, two folders, doc and plugin, are generated under. vim.
Run the following command to test whether the plug-in is installed.
1. ctags -- version. If there is information, the installation is complete.
2. Enter an original file, vi test. c, Enter command mode, and enter the command ": Tlist". If both the left and right columns are displayed, it indicates OK.
Associate ctags with taglist
Vi ~ /. Vim/plugin/taglist. vim
In command line mode, enter the command ":/loaded_taglist"
Add the following lines before the row:
Let Tlist_Ctags_Cmd = "/usr/bin/ctags" "directory may be changed, maybe/usr/local/bin/ctags
OK
To the directory you want to browse
Ctags-R
Vi test. c
: Syntax on // enable syntax highlighting
: Set cindent // enable auto indent
: Tlist
Now, let's look at the information box on the left for programming. There are functions, structures, macros, etc. I am not familiar with the specific usage.
Then I am opening a shell and playing a song with mplayer, So programming is much better.
I usually open the LINUX virtual machine, but do not log on, and then use putty to log on to a shell in windows, write programs under the shell, the two operating systems are not required.