Programming vim + ctags + taglist (ubuntu) in shell)

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.