diff options
| author | jdhao <jdhao@hotmail.com> | 2020-10-08 00:04:35 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-10-08 00:04:35 +0800 |
| commit | 8ec7e8a4731a4e16af914a6d9616cc0761e1c8d0 (patch) | |
| tree | 605e8f3d9a412b3c2c972f5ade8a329f26fbabf2 | |
| parent | 4e354ef185b23dc9ba26f013b5eeb3870fc2a4dc (diff) | |
more ins-completion mappings
| -rw-r--r-- | mappings.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mappings.vim b/mappings.vim index 2c8bf65..a5c200c 100644 --- a/mappings.vim +++ b/mappings.vim @@ -110,6 +110,10 @@ inoremap <expr> <esc> ((pumvisible())?("\<C-e>"):("\<esc>")) inoremap <expr> <tab> pumvisible() ? "\<c-n>" : "\<tab>" inoremap <expr> <s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>" +" Use <c-d> and <c-u> to scroll the completion menu. +inoremap <expr> <C-d> pumvisible() ? "\<PageDown>" : "\<C-d>" +inoremap <expr> <C-u> pumvisible() ? "\<PageUp>" : "\<C-u>" + " Edit and reload init.vim quickly nnoremap <silent> <leader>ev :tabnew $MYVIMRC <bar> tcd %:h<cr> nnoremap <silent> <leader>sv :silent update $MYVIMRC <bar> source $MYVIMRC <bar> |
