Vim Personal Configuration Summary

Source: Internet
Author: User
Tags tagname

Ctags

1. Download: http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags-5.8.tar.gz/download

2. Compile:./configure-prefix/usr/local/ctags where-prefix specifies the installation directory

Make, make install

3. Use: Ctags-r. Compile tags to create all files (a tags file will be generated in the current directory)


TagList

1. Download: http://www.vim.org/scripts/script.php?script_id=273

2. Install: Copy doc, plugin to ~/.vim/in the corresponding directory (if not, create a new doc, plugin directory), and then in the ~/.vim/doc directory, start Vim, execute: helptags.

3. Use: Vim-t tagName to open the file where the TagName is located

4. Common commands:

: Tag TagName, jump to the corresponding tagName in the TagList window

: Tselect tagName, Global search TagName

: Tlist, open taglist window

CTRL +] to jump to the definition of the function at which the cursor is located

Ctrl+t, jump to the last cursor location


Nerdtree

1. Download: http://www.vim.org/scripts/script.php?script_id=1658

2. Install: Copy doc, plugin to ~/.vim/in the corresponding directory (if not, create a new doc, plugin directory), and then in the ~/.vim/doc directory, start Vim, execute: helptags.


VIM uses:

ctrl+w+h, switch window to the left

ctrl+w+l, switch the window to the right.

VIMRC Configuration

1. Copy a VIMRC to ~/.VIMRC, which does not affect the system's default configuration

2. Add your own configuration items at the end of the file

The basic configuration

if has("syntax") Syntax highlighting

syntax on

endif

Set number "Displays line numbers

ColorScheme Ron "color scheme elflord Ron Peachpuff default

Set showmatch"match parentheses

Set Title

the TagList configuration

Let tlist_show_one_file= 1

Let tlist_exit_onlywindow= 1

the ctags configuration

Let tlist_ctags_cmd= '/usr/local/ctags/bin/ctags ' ctags location after compilation and installation

the Nerdtree configuration

Map <F3> : Nerdtreemirror<CR> F3 Open Nerdtree

Map <F3> : Nerdtreetoggle<CR>


Reference:

http://lnmcc.net/2013/04/01/mac%E4%B8%8Bvim-taglist-ctags/

Http://blog.chinaunix.net/uid-23089249-id-2855999.html

http://easwy.com/blog/archives/advanced-vim-skills-taglist-plugin/


Vim Personal Configuration Summary

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.