Loading

「杂项」Vim 配置文件

无数次听说 vim 很好用
无数次 :help
无数次被几十篇使用文档劝退 不要阅读理解 不要阅读理解
终于!
神现学弟告诉我这玩意有中文的 短得一批的使用说明
于是。
划水现场

set nocompatible
set nu
set ls=2
set sw=4
set tabstop=4
set cursorline
set cindent
set autoindent
set mouse=a
color ron
map<F5> :call F5()<CR>
func F5()
	exec "w"
	exec "!g++ % -o %< -O2 -Wall && time ./%<"
endf
map<F6> :w<CR>
map<F7> :call F7()<CR>
func F7()
	exec "w"
	exec "!g++ % -o %< -O2 -Wall && time ./%< < %<.in"
endf
map<F8> :e<CR>
inoremap { {<CR>}<ESC>ko
inoremap } {}<ESC>i
inoremap <C-_> <ESC>0i//
inoremap <C-\> <ESC>0xxi
posted @ 2021-08-07 21:41  ZZ作者  阅读(78)  评论(3编辑  收藏  举报