.vimrc
colorscheme ron
set nu
set ruler
set ts=4
set sw=4
set mouse=a
set noswapfile
map <F5> <ESC>:w<CR> <ESC>:! g++ % -g -O2 -std=c++11 && time ./a.out<CR>
map <C-c> <ESC>:w<CR> <ESC>:! cat %<CR>
map <F6> <ESC>:set autoindent<CR>
map <F7> <ESC>:set noautoindent<CR>
map <C-t> <ESC>:tabe
map <C-h> <ESC>:tabp<CR>
map <C-l> <ESC>:tabn<CR>
map <C-d> <ESC>:vert diffsplit
autocmd VimEnter * :hi clear TabLineFill
常用命令
vsp 文件 ”多文件在列
sp 文件 “多文件在行
tabedit 文件 ”标签页打开文件
shell “命令
shift+g “显示行号
数字gg ”跳到行号
gg ”跳到文首
G ”跳到文尾
可视+y ”复制
数字yy ”复制
数字dd “删除
p ”粘贴
/字符串 “查找
n “下一个匹配
N “上一个匹配
:w
:wq
shift+a
参考文献
https://www.cnblogs.com/shengy/p/7478287.html