VIM is the God of editors
1.vimtutor(vim自带)
2.vim-adventures
3.vim配置
set nocompatible
set lines=40 columns=150
set number
set go=
set ruler
syntax on
set showcmd
syntax enable
set background=dark
colorscheme molokai
set t_Co=256
set guifont=Yahei_Consolas_Hybrid:h14
filetype on
set history=1000
set autoindent
set smartindent
set backspace=indent,eol,start
set tabstop=4
set shiftwidth=4
set showmatch
set cursorline
map <C-A> ggVG"+y
map <F9> :call Run1()<CR>
func! Run1()
exec "w"
exec "!g++ -Wall % -o %<"
endfunc
map <F10> :call Run2()<CR>
func! Run2()
exec "!%<"
endfunc
map <F11> :call Run3()<CR>
func! Run3()
exec "w"
exec "!g++ -Wall % -o %<"
exec "!%<"
endfunc
set clipboard=unnamedplus
au BufRead,BufNewFile,BufEnter * cd %:p:h