Vim is configured as IDE primarily for PHP and C developers

Source: Internet
Author: User
Vim is configured as IDE primarily for PHP and C developers to provide file directories, auto-completion and hints, new file default comments and other functions

Goal

Let Vim have the IDE's effect 1. Directory tree 2. Open File label 3. function, class member view (Eclipse's outline feature) 4. Function Jump 5. Auto-Complete 6. Find, replace

If it doesn't load, please refer to the pictures on my blog

Installation

Version requirements

Vim version >=7.3 low version can perform vim74install.sh installation view vim version  vim--version

Installation steps

git clone https://github.com/wming3/.vimToIDE.git  ~/.vimcd ~/.vimsh install.sh

Add Add-ons

CD ~/.vimgit submodule add Https://github.com/scrooloose/nerdcommenter.git bundle/nerdcommenter

To remove the Vim plugin, use the following command

1.git rm-r--cache bundle/nerdcommenter    2.rm-rf bundle/nerdcommenter    3. Modify. gitmodules, Delete related nodes

Plugin usage Instructions

Default configuration

 
  
   
   =,   :
  
   
    
    Use this alternative in the following
   
    
     
     : Turn off the current buff
    
     
      
      : Open the next buff
     
      
       
       : Open the previous buff
      
       
         : Relative line number/absolute line number control 
        
          : File time machine function 
         
       
     
      
    
     
   
    
  
   
 
  

Conque-shell

Open Terminal plugin in vim: Conqueterm Bash open terminal: conquetermsplit separate window to open terminal

Omnicppcomplete

C + + code auto complement enhancement plugin

Checksyntax_vim

Grammar Check plugin F5 enable check (automatic check after file save)

Cscope

Syntax tag generation, code reading plugin F6 generates the syntax tag for the current directory (trace. php. phtml. java. C. cpp. h) file
 
  
   
   jump definition
  
   
    
    jump previous
   
    
     
     g: Find function definition
    
     
      
      d: Find function call
     
      
       
       s: Find all occurrences
      
       
         C: Find call record 
       
     
      
    
     
   
    
  
   
 
  

Easygrep

Keyword Find plugin
 
  
   
  vv find
 keyword
  

File-line

Fuzzyfinder

File Lookup plugin (wildcard characters supported) F4 Open

Nerdcommenter

Used to add comments to the code
 
  
   
  cc Add comment
  
   
    
   cu uncomment
   
    
     
    C
    
     
      
      Add/Uncomment
     
      
       
      cm Segment Notes
      
       
         CS Nice notes 
       
     
      
    
     
   
    
  
   
 
  

Nerdtree

?  Open Help B  Show/close bookmark D  Delete Bookmark F5 Create label for current directory r  update current directory T  open current file in new tab F1 help  F2 Open file directory tree F3 open file tag, function class member view

Snipmate

Code block generation For/foreach/class/func + TAB Generate snippet Syntax file: ~/.vim/snippets/*.snippets

Solarized

The default template comes with a management plug-in

Space

Supertab

Code Automatic Reminder Plugin

Tabular

Text snapping plug-ins: Tab/=  by equals sign

Tagbar

Tag reading plugin (compatible with object-oriented language) F3 display/close

Vcscommand

Version control plug-in (Support GIT,SVN): Vcsadd Add files to the source: Vcsannotate Displays the submitter before each line of code: Vcscommit commits the change to the current file: Vcsdelete Delete the current file in the source: Vcslog Show file History changes : Vcsrevert rollback current file to source history latest version: Vcsreview view a specific version of the current file: Vcsstatus View version information for the current file: Vcsunlock Undo Lock on current file: Vcsupdate update current file to source version : Vcsvimdiff View the difference between the current file and the historical version

Vim-l9

Vim-powerline

status Bar Enhancement Plugin

Blog Address: http://blog.csdn.net/u010187139/article/details/50015339

Reference Address: http://wiki.baidu.com/pages/viewpage.action?pageId=137577394

Project home:http://www.open-open.com/lib/view/home/1448628661267

  • 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.