标签:配置 dir stop swa mat ima abs tabs g++
本地
syntax on
set number
set mouse=a
set autoread
set autochdir
set shiftwidth=4
set tabstop=4
set nocompatible
set noswapfile
set autoindent
set showmatch
set softtabstop=4
set smartindent
imap { {<CR>}<ESC>kA
map <F7> :w<CR>:!g++ % -o %< -g -Wall <CR>
imap <F7> <ESC>:w<CR>:!g++ % -o %< -g -Wall <CR>
map <F8> :!time ./%< <CR>
imap <F8> <ESC>:!time ./%< <CR>
map <F9> :w<CR>
imap <F9> <ESC>:w<CR>
map <c-a> ggvG$
imap <c-a> ggvG$
map <c-c> "+Y
imap <c-c> "+Y
map <c-v> "+P
imap <c-v> "+P
map <c-h> 7h
map <c-j> 7j
map <c-k> 7k
map <c-l> 7l
map <c-up> 7k
map <c-down> 7j
map <c-left> 7h
map <c-right> 7l
map `1 :0r ~/模板/head.cpp<CR>
map `2 :0r ~/模板/Head.cpp<CR>
map `3 :0r ~/模板/math.cpp<CR>
考场配置
syntax on
set number
set mouse=a
set autoread
set autochdir
set shiftwidth=4
set tabstop=4
set nocompatible
set noswapfile
set autoindent
set showmatch
set softtabstop=4
set smartindent
imap { {<CR>}<ESC>kA
map <F7> :w<CR>:!g++ % -o %< -g -Wall <CR>
imap <F7> <ESC>:w<CR>:!g++ % -o %< -g -Wall <CR>
map <F8> :!time ./%< <CR>
imap <F8> <ESC>:!time ./%< <CR>
map <F9> :w<CR>
imap <F9> <ESC>:w<CR>
map <c-a> ggvG$
imap <c-a> ggvG$
map <c-c> "+Y
imap <c-c> "+Y
map <c-v> "+P
imap <c-v> "+P
标签:配置 dir stop swa mat ima abs tabs g++
原文地址:https://www.cnblogs.com/lizehon/p/10602775.html