summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc7
1 files changed, 7 insertions, 0 deletions
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