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