Record the VIM profile I used

Source: Internet
Author: User

It's not perfect yet:

Au bufreadpost *ifLine"' \ '") >0|ifLine"' \ '") <= Line ("$") |exe ("norm ' \ '")|Else|exe"Norm $"|endif|endifsyntax onfiletype onset linespace=0 "character putting insert pixelsSet sw=4Set TS=4set Etset smset lbrset History= + "number of history recordsSet Cul"highlight the line where the cursor is located"Set CUC"highlight cursor column set ruler"Show ruler, where the cursor is locatedSet go="No graphical buttonsSet nocompatible"not compatible with VISet confirm"prompt when exit is not savedSet ShowCmd"the command entered is displayed ."Set clipboard+=unnamedSet fenc=utf-8Set Fencs=utf-8, gbk,gb2312,cp936,usc-bom,euc-Jpset TabStop=4Set Shiftwidth=4set Noexpandtabset nuset autoindentset smartindentset cindentset showcmd"Display the command enteredSet cmdheight=1 "The height of the bottom command lineSet mouse=aset Mousemodel=Popup"Set Completeopt+=longestSet Nohlsearch"Ignore case when searchingSet Novisualbell"don't blink .Set Whichwrap+=<,>,h,l"allow backspace and cursor keys to span line boundariesSet Foldmethod=syntax"Auto Fold"Switch FoldingMap <F3>Zaset Foldlevel= About"Set nowrap"don't break."Set Nobackup"do not back up file set Noerrorbells"don't let vim make a drip soundSet Magic"Set MagicSet Showmatch"Highlight matching parenthesesNmap<tab> v>Nmap<s-tab> v<Vmap<tab> >Gvvmap<s-tab> <Gvnmap<F5>:W<cr>:call Do_onekeymake () <CR><c-l>IMAP<F5> <esc>:W<cr>:call Do_onekeymake () <CR><c-l>IfunctionDo_onekeymake ()"Let if=expand ('%:p ');    "Let of=expand ('%:p: H '). ' Main '    "Let fe=expand ('%:e ')Silent exec"!urxvt-hold-e g++-wall%"Silent exec"!urxvt-hold-e./a.out"    "Silent exec"!urxvt-hold-els-al"Endfunction

Record the VIM profile I used

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.