diff --git a/.vimrc b/.vimrc index f3850cb..ca6a1ba 100644 --- a/.vimrc +++ b/.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 i :PlugInstall nnoremap u :PlugUpdate nnoremap c :PlugClean +" 分屏窗口移动 +nnoremap j +nnoremap k +nnoremap h +nnoremap l + " 主题 set background=dark let g:onedark_termcolors=256 @@ -329,17 +334,6 @@ noremap :call smooth_scroll#down(&scroll, 0, 2) noremap :call smooth_scroll#up(&scroll*2, 0, 4) noremap :call smooth_scroll#down(&scroll*2, 0, 4) -" vim-multiple-cursors -let g:multi_cursor_use_default_mapping = 0 -let g:multi_cursor_start_word_key = '' -let g:multi_cursor_select_all_word_key = '' -let g:multi_cursor_start_key = 'g' -let g:multi_cursor_select_all_key = 'g' -let g:multi_cursor_next_key = '' -let g:multi_cursor_prev_key = '' -let g:multi_cursor_skip_key = '' -let g:multi_cursor_quit_key = '' - " gv nnoremap g :GV nnoremap G :GV! diff --git a/README.md b/README.md index 66dbba4..a595625 100644 --- a/README.md +++ b/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 diff --git a/help.md b/help.md index e24ebe4..a32c0bb 100644 --- a/help.md +++ b/help.md @@ -1,49 +1,48 @@ 插件相关 ------------ -| 快捷键 | 说明 | -| ------- | ----- | -| `,` | Leader Key | -| `n` | 打开/关闭代码资源管理器 | -| `t` | 打开/关闭函数列表 | -| `a` | .h .cpp 文件切换 | -| `u` | 转到函数声明 | -| `U` | 转到函数实现 | -| `o` | 打开include文件 | -| `y` | 拷贝函数声明 | -| `p` | 生成函数实现 | -| `w` | 单词跳转 | -| `f` | 搜索~目录下的文件 | -| `F` | 搜索当前目录下的文本 | -| `g` | 显示git仓库提交记录 | -| `G` | 显示当前文件提交记录 | -| `gg` | 显示当前文件在某个commit下的完整内容 | -| `ff` | 语法错误自动修复(FixIt) | -| `` | 切换到上一个buffer | -| `` | 切换到下一个buffer | -| `d` | 删除当前buffer | -| `D` | 删除当前buffer外的所有buffer | -| `vi` | 运行vi编辑器时,默认启动开始页面 | -| `` | 显示语法错误提示窗口 | -| `` | 启用markdown实时预览 | -| `` | 关闭markdown实时预览 | -| `` | 显示上一主题 | -| `` | 显示下一主题 | -| `l` | 按竖线对齐 | -| `=` | 按等号对齐 | -| `gcc` | 注释代码 | -| `gcap` | 注释段落 | -| `vif` | 选中函数内容 | -| `dif` | 删除函数内容 | -| `cif` | 改写函数内容 | -| `vaf` | 选中函数内容(包括函数名 花括号) | -| `daf` | 删除函数内容(包括函数名 花括号) | -| `caf` | 改写函数内容(包括函数名 花括号) | -| `+` | 逐渐增大选择区域 | -| `-` | 逐渐减小选择区域 | -| `` | 多光标编辑,ctrl+j选中当前单词,再按ctrl+j选中下一个同样的单词,选完后按c批量修改 | -| `fa` | 查找a字母,然后再按f键查找下一个 | -| `` | Emoji:dog:补全 | +| 快捷键 | 说明 | +| ------- | ----- | +| `,` | Leader Key | +| `n` | 打开/关闭代码资源管理器 | +| `t` | 打开/关闭函数列表 | +| `a` | .h .cpp 文件切换 | +| `u` | 转到函数声明 | +| `U` | 转到函数实现 | +| `o` | 打开include文件 | +| `y` | 拷贝函数声明 | +| `p` | 生成函数实现 | +| `w` | 单词跳转 | +| `f` | 搜索~目录下的文件 | +| `F` | 搜索当前目录下的文本 | +| `g` | 显示git仓库提交记录 | +| `G` | 显示当前文件提交记录 | +| `gg` | 显示当前文件在某个commit下的完整内容 | +| `ff` | 语法错误自动修复(FixIt) | +| `` | 切换到上一个buffer | +| `` | 切换到下一个buffer | +| `d` | 删除当前buffer | +| `D` | 删除当前buffer外的所有buffer | +| `vi` | 运行vi编辑器时,默认启动开始页面 | +| `` | 显示语法错误提示窗口 | +| `` | 启用markdown实时预览 | +| `` | 关闭markdown实时预览 | +| `` | 显示上一主题 | +| `` | 显示下一主题 | +| `l` | 按竖线对齐 | +| `=` | 按等号对齐 | +| `gcc` | 注释代码 | +| `gcap` | 注释段落 | +| `vif` | 选中函数内容 | +| `dif` | 删除函数内容 | +| `cif` | 改写函数内容 | +| `vaf` | 选中函数内容(包括函数名 花括号) | +| `daf` | 删除函数内容(包括函数名 花括号) | +| `caf` | 改写函数内容(包括函数名 花括号) | +| `+` | 逐渐增大选择区域 | +| `-` | 逐渐减小选择区域 | +| `fa` | 查找a字母,然后再按f键查找下一个 | +| `` | Emoji:dog:补全 | 插入模式 @@ -83,7 +82,8 @@ | `j` | 跳到下边的窗口 | | `k` | 跳到上边的窗口 | | `l` | 跳到右边的窗口 | -| `d` | 删除当前窗口 | +| `c` | 关闭当前窗口 | +| `o` | 关闭其他窗口 | 光标移动