Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Apr 26, 2018
1 parent 2b40ac8 commit d9f80b5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ call plug#end()
runtime macros/matchit.vim

" 编辑vimrc文件
nnoremap <Leader>ev :e $MYVIMRC<CR>
nmap <Leader>ev :e $MYVIMRC<CR>
" 查看help文件
nmap <Leader>h :e ~/.vimplus/help.md<CR>
" change-colorscheme
map <F10> :NextColorScheme<CR>
Expand Down
23 changes: 23 additions & 0 deletions help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
| 快捷键 | 说明 |
| ------- | ----- |
| `,` | Leader Key |
| `<Leader>n` | 打开/关闭目录树 |
| `<Leader>t` | 显示函数、变量、宏列表 |
| `<Leader>a` | .h .cpp 文件切换 |
| `<Leader>u` | 转到函数实现 |
| `<Leader>i` | 转到函数声明 |
| `<Leader>o` | 打开include文件 |
| `<Leader>w` | 单词跳转 |
| `<Leader>f` | 模糊文件搜索 |
| `<Leader>ev` | 快速编辑vimrc文件 |
| `<F5>` | 分析语法错误 |
| `<F9>/<F10>` | 改变主题颜色 |
| `<F7>/<F8>` | 启用/关闭markdown实时预览 |
| `<Ctrl> p/<Ctrl> n` | 窗口切换 |
| `<Ctrl> o/<Ctrl> i` | 光标位置切换 |
| `gcc` | 注释代码 |
| `:DirDiff <dir1> <dir2>` | 目录比较 |
| `.` | 重复上次操作 |
| `vi"/di"/ci"` | 选中/删除/改写引号(可以是括号等配对符)内的内容 |
| `di,/ci,` | 删除/改写函数参数 |
| `vif/dif/cif` | 选中/删除/改写函数内容 |

0 comments on commit d9f80b5

Please sign in to comment.