VIM Usage Tips

Source: Internet
Author: User

Order

To Baidu after the job, found in our department, whether Mac or Windows programmers exclusively to use VIM to edit code, a variety of plugins, shortcuts, dazzling commands and so on. I used to be in college only a few vim commands, to Baidu after catching up, now also can use VIM to develop happiness.

Plug-in installation Minibufexpl.vim (buffer preview)

Download from Https://github.com/fholgado/minibufexpl.vim and install according to http://www.vim.org/scripts/script.php?script_id=159 guidelines.

Installation steps: Copy Minibufexpl.vim into your plugin directory and add the following to your. VIMRC

1111
Neocomplete (Code completion)

Download from https://github.com/Shougo/neocomplete.vim#requirements and follow the instructions for installation, dependencies If_lua must have, no words read the requirements section.

. VIMRC configuration file

0.3.5 version (new. *.un~ File Unified Management)

syntax onset nobackupset noswapfileset hlsearchset numberset rulerset expandtabset tabstop=4Set Softtabstop=4Set Shiftwidth=4set Autoindentset cindentset smartindentset mouse=Vset BG=Darkset Encoding=utf-8set Nobombset cursorlineset magicset confirmset langmenu=zh_cn. utf-8Set Showmatchset matchtime=1Set Scrolloff=3Set completeopt=Longest,menuset T_co= theSet Wildmenu"<tab> Auto Not completeSet Wildmode=full"<tab> Auto zsh Auto -Complete menuSet history= $ "increasing the number of command line history is very valuableSet Undofile"un~ File Unified StorageSet undodir=~/. Vimundofilecolorscheme Darkbluecnoremap<C-p> <Up>"in command line mode <C-p> map to <Up>Cnoremap <C-n> <Down>"minimum configuration for loading plug-insSet Nocompatiblefiletype plugin onautocmd FileType* setlocal formatoptions-=c formatoptions-=r formatoptions-=o"prevent automatic comment when pasting
View Code

  

  

VIM Usage Tips

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.