Skip to content

Commit

Permalink
update vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Jun 10, 2018
1 parent 3e1fd95 commit ee9ef9b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ inoremap <silent> <F12> <esc> :ShowColorScheme<cr>
let g:prepare_code_plugin_path = expand($HOME . "/.vim/plugged/prepare-code")

" vim-buffer
nnoremap <c-p> :PreviousBuffer<cr>
nnoremap <c-n> :NextBuffer<cr>
nnoremap <leader>d :CloseCurrentBuffer<cr>
nnoremap <leader>D :BufOnly<cr>
nnoremap <silent> <c-p> :PreviousBuffer<cr>
nnoremap <silent> <c-n> :NextBuffer<cr>
nnoremap <silent> <leader>d :CloseBuffer<cr>
nnoremap <silent> <leader>D :BufOnly<cr>
" nerdtree
nnoremap <silent> <leader>n :NERDTreeToggle<cr>
Expand Down
22 changes: 12 additions & 10 deletions help.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
| `<c-w>l` | 跳到右边的窗口 |
| `<c-w>c` | 关闭当前窗口 |
| `<c-w>o` | 关闭其他窗口 |
| `:only` | 关闭其他窗口 |


光标移动
Expand Down Expand Up @@ -305,13 +306,14 @@
其他
------------

| 快捷键 | 说明 |
| ------- | ----- |
| `vim -u NONE -N` | 开启vim时不加载vimrc文件 |
| `<leader>e` | 快速编辑vimrc文件 |
| `<leader>s` | 重新加载vimrc文件 |
| `<leader>h` | 打开vimplus帮助文档 |
| `<leader>H` | 打开当前光标所在单词的vim帮助文档 |
| `<leader><leader>i` | 安装插件 |
| `<leader><leader>u` | 更新插件 |
| `<leader><leader>c` | 删除插件 |
| 快捷键 | 说明 |
| ------- | ----- |
| `vim -u NONE -N` | 开启vim时不加载vimrc文件 |
| `vimdiff file1 file2` | 显示文件差异 |
| `<leader>e` | 快速编辑vimrc文件 |
| `<leader>s` | 重新加载vimrc文件 |
| `<leader>h` | 打开vimplus帮助文档 |
| `<leader>H` | 打开当前光标所在单词的vim帮助文档 |
| `<leader><leader>i` | 安装插件 |
| `<leader><leader>u` | 更新插件 |
| `<leader><leader>c` | 删除插件 |

0 comments on commit ee9ef9b

Please sign in to comment.