update vimrc
This commit is contained in:
parent
e2e6c5f1d0
commit
92d75be573
18
.vimrc
18
.vimrc
@ -130,7 +130,6 @@ Plug 'kana/vim-textobj-syntax'
|
||||
Plug 'kana/vim-textobj-function'
|
||||
Plug 'sgur/vim-textobj-parameter'
|
||||
Plug 'Shougo/echodoc.vim'
|
||||
Plug 'terryma/vim-multiple-cursors'
|
||||
Plug 'terryma/vim-smooth-scroll'
|
||||
Plug 'terryma/vim-expand-region'
|
||||
Plug 'rhysd/clever-f.vim'
|
||||
@ -161,6 +160,12 @@ nnoremap <leader><leader>i :PlugInstall<cr>
|
||||
nnoremap <leader><leader>u :PlugUpdate<cr>
|
||||
nnoremap <leader><leader>c :PlugClean<cr>
|
||||
|
||||
" 分屏窗口移动
|
||||
nnoremap <c-j> <c-w>j
|
||||
nnoremap <c-k> <c-w>k
|
||||
nnoremap <c-h> <c-w>h
|
||||
nnoremap <c-l> <c-w>l
|
||||
|
||||
" 主题
|
||||
set background=dark
|
||||
let g:onedark_termcolors=256
|
||||
@ -329,17 +334,6 @@ noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 0, 2)<CR>
|
||||
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 0, 4)<CR>
|
||||
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 0, 4)<CR>
|
||||
|
||||
" vim-multiple-cursors
|
||||
let g:multi_cursor_use_default_mapping = 0
|
||||
let g:multi_cursor_start_word_key = '<C-j>'
|
||||
let g:multi_cursor_select_all_word_key = '<A-j>'
|
||||
let g:multi_cursor_start_key = 'g<C-j>'
|
||||
let g:multi_cursor_select_all_key = 'g<A-j>'
|
||||
let g:multi_cursor_next_key = '<C-j>'
|
||||
let g:multi_cursor_prev_key = '<C-k>'
|
||||
let g:multi_cursor_skip_key = '<C-x>'
|
||||
let g:multi_cursor_quit_key = '<Esc>'
|
||||
|
||||
" gv
|
||||
nnoremap <leader>g :GV<cr>
|
||||
nnoremap <leader>G :GV!<cr>
|
||||
|
||||
10
README.md
10
README.md
@ -102,7 +102,6 @@ An automatic configuration program for vim
|
||||
| [gv][64] | git提交浏览器 |
|
||||
| [vim-slash][50] | 优化搜索,移动光标后清除高亮 |
|
||||
| [echodoc][57] | 补全函数时在命令栏显示函数签名 |
|
||||
| [vim-multiple-cursors][63] | 多光标编辑 |
|
||||
| [vim-smooth-scroll][60] | 让翻页更顺畅 |
|
||||
| [vim-expand-region][61] | 快速选择区域 |
|
||||
| [clever-f.vim][68] | 强化f和F键 |
|
||||
@ -200,14 +199,14 @@ Q & A
|
||||
|
||||
![][40]
|
||||
|
||||
- cppfun
|
||||
|
||||
![][58]
|
||||
|
||||
- LeaderF
|
||||
|
||||
![][41]
|
||||
|
||||
- vim-multiple-cursors
|
||||
|
||||
![][65]
|
||||
|
||||
- vim-airline
|
||||
|
||||
![][42]
|
||||
@ -292,7 +291,6 @@ Q & A
|
||||
[60]: https://github.com/terryma/vim-smooth-scroll
|
||||
[61]: https://github.com/terryma/vim-expand-region
|
||||
[62]: https://github.com/mileszs/ack.vim
|
||||
[63]: https://github.com/terryma/vim-multiple-cursors
|
||||
[64]: https://github.com/junegunn/gv.vim
|
||||
[65]: https://raw.githubusercontent.com/terryma/vim-multiple-cursors/master/assets/example1.gif
|
||||
[66]: https://github.com/chxuan/vimplus-startify
|
||||
|
||||
4
help.md
4
help.md
@ -41,7 +41,6 @@
|
||||
| `caf` | 改写函数内容(包括函数名 花括号) |
|
||||
| `+` | 逐渐增大选择区域 |
|
||||
| `-` | 逐渐减小选择区域 |
|
||||
| `<c-j>` | 多光标编辑,ctrl+j选中当前单词,再按ctrl+j选中下一个同样的单词,选完后按c批量修改 |
|
||||
| `fa` | 查找a字母,然后再按f键查找下一个 |
|
||||
| `<c-x><c-o>` | Emoji:dog:补全 |
|
||||
|
||||
@ -83,7 +82,8 @@
|
||||
| `<c-w>j` | 跳到下边的窗口 |
|
||||
| `<c-w>k` | 跳到上边的窗口 |
|
||||
| `<c-w>l` | 跳到右边的窗口 |
|
||||
| `<leader>d` | 删除当前窗口 |
|
||||
| `<c-w>c` | 关闭当前窗口 |
|
||||
| `<c-w>o` | 关闭其他窗口 |
|
||||
|
||||
|
||||
光标移动
|
||||
|
||||
Loading…
Reference in New Issue
Block a user