Skip to content

Commit

Permalink
add /BufOnly.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Jun 4, 2018
1 parent 84ad529 commit e5da6e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-scripts/a.vim'
Plug 'vim-scripts/txt.vim'
Plug 'vim-scripts/BufOnly.vim'
Plug 'ryanoasis/vim-devicons'
Plug 'junegunn/vim-slash'
Plug 'junegunn/gv.vim'
Expand Down Expand Up @@ -159,6 +160,7 @@ nnoremap <leader><leader>c :PlugClean<cr>
nnoremap <c-n> :bn<cr>
nnoremap <c-p> :bp<cr>
nnoremap <leader>d :bd<cr>
nnoremap <leader>D :BufOnly<cr>
" 主题
set background=dark
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ An automatic configuration program for vim
| `<leader>G` | 显示当前文件提交记录 |
| `<leader>gg` | 显示当前文件在某个commit下的完整内容 |
| `<leader>ff` | 语法错误自动修复(FixIt) |
| `<leader>d` | 删除当前buffer |
| `<leader>D` | 删除当前buffer外的所有buffer |
| `vi` | 运行vi编辑器时,默认启动开始页面 |
| `<F5>` | 显示语法错误提示窗口 |
| `<F7>` | 启用markdown实时预览 |
Expand Down
2 changes: 2 additions & 0 deletions help.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
| `<leader>G` | 显示当前文件提交记录 |
| `<leader>gg` | 显示当前文件在某个commit下的完整内容 |
| `<leader>ff` | 语法错误自动修复(FixIt) |
| `<leader>d` | 删除当前buffer |
| `<leader>D` | 删除当前buffer外的所有buffer |
| `vi` | 运行vi编辑器时,默认启动开始页面 |
| `<F5>` | 显示语法错误提示窗口 |
| `<F7>` | 启用markdown实时预览 |
Expand Down

0 comments on commit e5da6e5

Please sign in to comment.