sy on
filetype on
imap jj <Esc>
imap ll <CR>
imap kk <Tab>
imap kkk //
map mm :
set shiftwidth=2
set tabstop=2
set softstop=2
set number
set guifont=Inconsolata\ 15
set encoding=utf-8
set mouse=a
set selection=exclusive
set selectmode=mouse,key
map <F7> :call CompileRunGcc()<CR>
func! CompileRunGcc()
exec "w"
if &filetype == 'c'
exec "!g++ % -o %<"
exec "! ./%<"
elseif &filetype == 'cpp'
exec "!g++ % -o %<"
exec "! ./%<"
endif
endfunc
map <F5> :call Rungdb()<CR>
func! Rungdb()
exec "w"
exec "!g++ % -g -o %<"
exec "!gdb ./%<"
endfunc
就这样啦,以后还会补充的!