From 8668898d9db43a766a9952aed4ba012171cf2a12 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 31 Oct 2017 00:41:59 -0400 Subject: i think this tab override is probably a bit too opinionated not sure how it interacts with things like supertab and whatnot --- vim/plugin/opinionated-defaults.vim | 6 ------ 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 gk noremap gj inoremap gk inoremap gj -" use tab for completion -inoremap - \ strpart(getline('.'), 0, col('.') - 1) =~ '\(^\\|\s\+\)$' - \ ? "\" - \ : "\" -inoremap diff --git a/vimrc b/vimrc index 7249a71..4f9c315 100644 --- a/vimrc +++ b/vimrc @@ -32,6 +32,13 @@ autocmd vimrc CmdWinEnter * nnoremap nnoremap H :bp nnoremap L :bn " }}} +" use tab for completion {{{ +inoremap + \ strpart(getline('.'), 0, col('.') - 1) =~ '\(^\\|\s\+\)$' + \ ? "\" + \ : "\" +inoremap +" }}} " fixups for my keyboard remappings {{{ nmap ) 0 nmap g) g0 -- cgit v1.2.3-54-g00ecf