Skip to content

Commit b561981

Browse files
committed
update shortcuts
1 parent d244f39 commit b561981

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.vimrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ vmap <s-tab> <gv
105105
" Autocompletion
106106
set sb " splitbelow
107107
set cot+=popuphidden " completeopt
108-
autocmd FileType go inoremap <expr> <tab> pumvisible() ? '<C-n>' : '<C-x><C-o>'
109-
autocmd FileType go inoremap <expr> <s-tab> pumvisible() ? '<C-p>' : '<C-x><C-o>'
108+
autocmd FileType go inoremap <expr> <c-b> pumvisible() ? '<C-n>' : '<C-x><C-o>'
110109
111110
" Leader
112111
let mapleader = "\<Space>"
113112
nnoremap <leader>w :w<CR>
114113
nnoremap <leader>q :FloatermKill<CR>:q<CR>
115114
116-
nnoremap <leader>z :read ! git log -3 --pretty=\%B<CR>
115+
nnoremap <leader>z :read ! git log -8 --pretty=\%B<CR>
117116
118117
" turn to next or previous errors, after open location list
119118
nmap <leader>j :lnext<CR>
@@ -374,7 +373,7 @@ au FileType markdown nmap <leader>o :GenTocGFM<cr>
374373
375374
" =========================================================
376375
" Configuration: hotoo/pangu.vim
377-
au FileType markdown nmap <leader>y :Pangu<cr>
376+
au FileType markdown,text nmap <leader>y :PanguAll<cr>
378377
379378
" =========================================================
380379
" Configuration floaterm

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A shell script to deploy my vim configuration
55
The installation will overwrite your `.vimrc` file, be sure to backup your existing vim configuration.
66

77
```
8-
curl -L https://github.com/modood/vimrc/raw/master/install.sh | bash
8+
curl -L https://raw.githubusercontent.com/modood/vimrc/master/install.sh | bash
99
```
1010

1111
## keyboard shortcuts overview
@@ -46,7 +46,7 @@ curl -L https://github.com/modood/vimrc/raw/master/install.sh | bash
4646
| `<C-x>` | Cursor skip | vim-multiple-cursors |
4747
| `<C-c>` | [V] Copy selected text | gvim |
4848
| `<C-v>` | [N] Switch to [VB] mode<br/>[I] Paste | -<br/>gvim |
49-
| `<C-b>` | Toggle tagbar | tagbar |
49+
| `<C-b>` | [N] Toggle tagbar <br/>[I] Autocompletion | tagbar<br/>- |
5050
| `<C-n>` | Toggle Terdtree | nerdtree |
5151
| `<C-m>` | `<cr>` | **do not edit** |
5252
| `<C-;>` | Show clipboard | Ubuntu |

0 commit comments

Comments
 (0)