summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/plugin/opinionated-defaults.vim6
-rw-r--r--vimrc7
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>
diff --git a/vimrc b/vimrc
index 7249a71..4f9c315 100644
--- a/vimrc
+++ b/vimrc
@@ -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