这几天考试,老师经常不给开ftp下vimrc,所以只好自己写了。
color ron
set nu
set autoindent
set cindent
set cursorline
set tabstop=4
set mouse=a
set sw=4
inoremap [ []<ESC>i
inoremap ( ()<ESC>i
inoremap " ""<ESC>i
inoremap ‘ ‘‘<ESC>i
inoremap { {}<ESC>i
inoremap {<CR> {<CR>}<ESC>O<TAB>
inoremap jk <ESC>
inoremap <C-h> <LEFT>
inoremap <C-j> <DOWN>
inoremap <C-k> <UP>
inoremap <C-l> <RIGHT>
map <F5> :call Run()<CR>
func Run()
exec "w"
exec "!g++ % -o %< && ./%<"
endf
map <F8> :call Gdb()<CR>
func Gdb()
exec "w"
exec "!g++ % -o %< -g && gdb %<"
endf