diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-10-31 00:41:59 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-10-31 10:30:15 -0400 |
commit | 8668898d9db43a766a9952aed4ba012171cf2a12 (patch) | |
tree | 29d885305e3c260d785e4c38fa95a236953a3302 | |
parent | 762c306354830f4203f6429234d6786ae3e31c0a (diff) | |
download | conf-8668898d9db43a766a9952aed4ba012171cf2a12.tar.gz conf-8668898d9db43a766a9952aed4ba012171cf2a12.zip |
i think this tab override is probably a bit too opinionated
not sure how it interacts with things like supertab and whatnot
-rw-r--r-- | vim/plugin/opinionated-defaults.vim | 6 | ||||
-rw-r--r-- | vimrc | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/vim/plugin/opinionated-defaults.vim b/vim/plugin/opinionated-defaults.vim index 54341fc..7858182 100644 --- a/vim/plugin/opinionated-defaults.vim +++ b/vim/plugin/opinionated-defaults.vim @@ -146,9 +146,3 @@ noremap <up> gk noremap <down> gj inoremap <up> <C-o>gk inoremap <down> <C-o>gj -" use tab for completion -inoremap <expr> <Tab> - \ strpart(getline('.'), 0, col('.') - 1) =~ '\(^\\|\s\+\)$' - \ ? "\<Tab>" - \ : "\<C-n>" -inoremap <S-Tab> <C-p> @@ -32,6 +32,13 @@ autocmd vimrc CmdWinEnter * nnoremap <buffer><CR> <CR> nnoremap <silent>H :bp<CR> nnoremap <silent>L :bn<CR> " }}} +" use tab for completion {{{ +inoremap <expr> <Tab> + \ strpart(getline('.'), 0, col('.') - 1) =~ '\(^\\|\s\+\)$' + \ ? "\<Tab>" + \ : "\<C-n>" +inoremap <S-Tab> <C-p> +" }}} " fixups for my keyboard remappings {{{ nmap <silent>) 0 nmap <silent>g) g0 |