VIM creates the IDE

Source: Internet
Author: User
Tags function definition set background

1, Minbufexplorer

2, Ctags

Ctags tool is used to traverse the source code files generated tags files, these tags files can be used by the editor or other tools to quickly find the location of the source code symbols (Tag/symbol), such as variable name, function name and so on. For example, tags files are the basis for taglist and omnicppcomplete work.

[[Email protected] ~] #ctags-R

CTRL] Jumps to the definition of the symbol where the cursor is located.

Ctrl-t back to the position before the last jump.

3, TagList

TagList is a plug-in for vim that provides a structured view of source code symbols.

    : Tlist  Show or turn off the taglist    u             update taglist window to    change the sort order by             name, and toggle    x             between sort by names TagList window zoom in and zoom out, easy to view longer    tag+              Open a folding, with    zo-              Fold the tag up, with    ZC*              Open all folds, with    zr=              Fold All tags together, with ZM    [[            Skip to previous file    ]]            jump to the latter file      

4, Nerdtree

    p to the upper directory p to the root directory K to the same directory as the    first node    J to the last node of the same directory

5, Winmanager

Add plugin files under ~/.vim/

~/.VIMRC configuration file

Plugin

-rw-r--r--1Root root68053Nov - Ten: toMinibufexpl.vim-rw-r--r--1Root root7864Nov - xx: WuNerd_tree.vim-rw-r--r--1Root root152279The -  +: -Taglist.vim-rw-r--r--1Root root39277Nov -  -: -Winfileexplorer.vim-rw-r--r--1Root root39509Nov -  -: +Winmanager.vim-rw-r--r--1Root root13399Nov -  -: -Wintagexplorer.vim

Http://vim-scripts.org/vim/scripts.html

http://www.vim.org/

http://sourceforge.net/

Set NocompatibleifHas ("Syntax") Syntax on"Syntax Highlightingendif""ColorScheme Molokai"Elflord Ron Peachpuff default set color scheme, VIM comes with a color scheme saved in/usr/share/vim/vim72/colors directoryColorScheme Koehler"Detect file Typefiletype Onfiletype plugin on"If using a dark background within the editing area and syntax highlighting"turn on this option as well"Set Background=darkSet guifont=monaco\TenSet Guifontwide= Wenquanyi Zen Hei equal width micron black \Ten"uncomment the following to has Vim jump to the last position when"reopening a fileifHas ("Autocmd") au bufreadpost*ifLine"' \ '") >1&& Line ("' \ '") <= Line ("$") | Exe"normal! g ' \ ""|endif"Has Vim load indentation rules and plugins according to the detected filetypefiletype plugin indent onendif"The following is commented out as they cause vim -to-behave a lot"differently from regular Vi. They is highly recommended though."Set ignorecase"Ignore case in search mode"Set Smartcase"If the search pattern contains uppercase characters, do not use the'ignorecase'Options. Only when entering search mode and opening'ignorecase'option is not used. Set Autowrite"automatically write the contents back to the file: If the file has been modified, in each: Next,: Rewind,: Last,: First,:p revious, stop,: suspend,: Tag,:!,: Make, Ctrl] and ctrl-^ When you go to another file with: Buffer, Ctrl-o, Ctrl-i, ' {a-z0-9}, or ' {a-z0-9} ' command. Set Autoindent"Set auto-align (indent): The indent value for each line is equal to the previous line; Use Noautoindent to cancel the setting"Set Smartindent"Smart Alignment Set TabStop=4        "Set the width of tabs (Tab key)Set softtabstop=4     "set the width of a soft tabSet shiftwidth=4    "(auto) indent 4 spaces for useSet Cindent"automatic indentation using the C + + languageSet cinoptions={0, 1s,t0,n-2, P2s, (03s,=.5s,>1s,=1s,:1s"to set the specific indentation for A/C + + language"Set backspace=2"set Backspace key available set Showmatch"set the matching pattern to display matching parenthesesSet linebreak"wrap word in full lineSet whichwrap=b,s,<,>,[,]"The cursor can jump to another line from the beginning and end of the line ."Set Hidden"Hide buffers When they is abandoned"Set Mouse=a"Enable Mouse usage (all modes)"using the mouseifHas ('Mouse') Set Mouse=aendifset Number"Enable Line number"Show Line Numbers"Set Previewwindow"Identity Preview window set history= -        "set command history to"History 50 Records"-- status line settings--Set laststatus=2 "The status line of the last window is always displayed, and when the number of Windows is set to 1, the status line of the last window is displayed; 0 does not display the status line of the last windowSet ruler"ruler, which is used to display the line and column numbers of the cursor position, separated by commas. Each window has its own ruler. If the window has a status line, the ruler is displayed there. Otherwise, it appears on the last line of the screen. "-- command line settings--Set ShowCmd"command line Displays the command enteredSet Showmode"command line display vim current mode"--find setting--Set Incsearch"Enter a string to display the match pointSet Hlsearch"""""""""""""""""""""""""""""""Winmanager Setting""""""""""""""""""""""""""""""Let g:nerdtree_title="[Nerdtree]"Let g:winmanagerwindowlayout="Nerdtree"function!Nerdtree_start () exec'Nerdtree'endfunctionfunction!nerdtree_isvalid () return1Endfunctionnmap Wm:wmtoggle<CR>"""""""""""""""""""""""""""""""Minibufexplorer""""""""""""""""""""""""""""""Let G:minibufexplmapwindownavvim=1Let g:minibufexplmapwindownavarrows=1Let g:minibufexplmapctabswitchbufs=1Let g:minibufexplmodseltarget=1Let g:minibufexplmorethanone=0"""""""""""""""""""""""""""""""Nerdtree""""""""""""""""""""""""""""""Let nerdtreechdirmode=2  "Select ROOT to set as current directoryLet nerdtreeshowbookmarks=1 "Show BookmarksLet nerdtreeminimalui=1 "do not display the Help panelLet nerdtreedirarrows=0 "Catalog Arrow 1 show Arrows 0 traditional +-| number"""""""""""""""""""""""""""""""Tag List (ctags)""""""""""""""""""""""""""""""Let Tlist_exit_onlywindow=1          "If the TagList window is the last window, exit vimLet Tlist_use_right_window =1         "Display the TagList window in the right window
Tlist_show_one_file = 1

Added: Transfer from http://blog.csdn.net/bokee/article/details/6633193

Installation using Winmanager,nerdtree and Minibufexplorer

The previous introduction of several tools and plug-ins, mainly provide quick editing functions, such as definition of jump, symbol query, symbol hint and complement. Here's the three plugins that are primarily optimized for the VIM layout of the interface. Specifically, Nerdtree provides a tree-like browse file system interface, Minibufexplorer provides multi-file simultaneous editing functions, and winmanager the Nerdtree interface and taglist interface integration, so that vim more similar vs!

Separate from http://www.vim.org/scripts/script.php?script_id=1658

http://www.vim.org/scripts/script.php?script_id=159

Http://www.vim.org/scripts/script.php?script_id=95

Download the Nerdtree,minibufexplorer and Winmanager installation packages (Winmanager also has an updated version of VBA http://www.vim.org/scripts/script.php?script_id= 1440, the old version of Winmanger is selected here).

1) Unzip the Nerdtree installation package to the ~/.vim directory, just like any other plug-in. And go to the doc directory and run "Helptags" under the VIM command line. Command.

2) Minibufexplorer only one. vim file, copy it to the ~/.vim/plugin directory.

3) Add the following lines to the ~/.VIMRC file:

      1       111 Let G       :             Minibufexplmorethanone=0

4) Extract the Winmanager installation package to the ~/.vim directory.

5) Add the following lines to the ~/.VIMRC file:

 let G:nerdtree_title= [nerdtree]   "  let G:winmanagerwindowlayout  = " nerdtree| TagList   function ! Nerdtree_start () exec   " nerdtree "  endfunction  function !  Nerdtree_isvalid () return  1   endfunction nmap wm:wmtoggle  <cr> 

6) This version of Winmanager seems to have a small bug, when you open the Winmanager interface, you will open an empty file at the same time. This can affect subsequent use, so we'll turn off the empty file when we open the Winmanager. Locate the following function definition in the Winmanager.vim file in the ~/.vim/plugin directory and add the contents of line 6th below line 5th:

     function! <SID>Togglewindowsmanager ()        if  iswinmanagervisible () call           s: Closewindowsmanager ()        Elsecall           S:startwindowsmanager ()           ' q '        end     endfunction

VIM creates the IDE

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.