commit b360af8a1a87001e2bc01d964b9c765785463738
parent d30e368080913ae4bf5e0b2c8c3a535daa2978ac
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 22 Aug 2018 10:43:53 +0200
Fixed tab completion bindings for vim
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dotfiles/vim-config/commands.vimrc b/dotfiles/vim-config/commands.vimrc
@@ -12,7 +12,7 @@ function! InsertTabWrapper()
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
else
- return "\<c-p>"
+ return "\<c-n>"
endif
endfunction
diff --git a/dotfiles/vim-config/map.vimrc b/dotfiles/vim-config/map.vimrc
@@ -16,7 +16,7 @@ nnoremap <leader>b :ls<cr>
" Tab completion
inoremap <expr> <tab> InsertTabWrapper()
-inoremap <s-tab> <c-n>
+inoremap <s-tab> <c-p>
" Retain visual mode after > and <
vmap < <gv