vim自定义配置之常规设置

vimConfig/plugin/general-operation.vim

 1 "快速关闭
 2 map <S-Q> :q<CR>:q<CR>:q<CR>:q<CR>
 3 "映射复制、粘贴、剪贴ctrl+c ctrl+v ctrl+x
 4 "map <C-V> "+pa<Esc>
 5 map! <C-V> <Esc>"+pa
 6 map <C-C> "+y
 7 map <C-X> "+x
 8 " 映射全选 ctrl+a
 9 map <C-A> ggVG
10 map! <C-A> <Esc>ggVG
11 "ctrl+s为保存
12 map <C-S> :w<CR>
13 map! <C-S> <Esc>:w<CR>a
14 "ctrl+z撤销
15 map <C-Z> :u<CR>
16 map! <C-Z> <Esc>:u<CR>a
17 "双击时高亮
18 map <2-LeftMouse> *
19 map! <2-LeftMouse> <c-o>*
20 "ctrl+鼠标左键跳转
21 map <C-LeftMouse> <C-]>
22 map! <C-LeftMouse> <Esc><C-]>
原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/3509524.html