vimrc 配置文件


随时用

set nu
set ls=2
set sw=4
set ts=4
set noswapfile
set mouse=a
set nobackup
set cindent
set autoindent
set cursorline
set smartindent
set ruler
set t_Co=256
color ron
inoremap ( ()<ESC>i
inoremap " ""<ESC>i
inoremap ' ''<ESC>i
inoremap { {}<ESC>i
inoremap {<CR> {<CR>}<ESC>O
inoremap <C-j> <DOWN>
inoremap <C-h> <LEFT>
inoremap <C-l> <RIGHT>
inoremap <C-k> <UP>
map <F5> :call Run()<CR>
func Run()
	exec "w"
	exec "!g++ % -Wall -o %< -lm -ftrapv && time ./%<"
endf
map <F8> :call Gdb()<CR>
func Gdb()
	exec "w"
	exec "!g++ % -o %< -g && gdb %< -q"
endf
map <F9> :call Print()<CR>
func Print()
	exec "w"
	exec "!cat %"
endf



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM