Improved vim tab completion

This commit is contained in:
Andrew R. M 2016-12-16 10:22:32 -05:00
parent 845e70b820
commit 783333144d

17
vimrc
View File

@ -9,6 +9,22 @@ set nocompatible
runtime bundle/pathogen/autoload/pathogen.vim
execute pathogen#infect()
"{- SUPERTAB -}"
set complete+=kspell
set completeopt=longest,menuone
" Use context sensitive completion to allow filename and omni completion
let g:SuperTabDefaultCompletionType = "context"
" Completion context only lasts for current completion
let g:SuperTabRetainCompletionDuration = "completion"
" Use enhanced longest matching completion
let g:SuperTabLongestEnhanced = 1
" Attempt to close preview window when the completion finishes
let g:SuperTabClosePreviewOnPopupClose = 1
"{- COMMANDS -}"
" Remove blank lines "
@ -42,6 +58,7 @@ set nocompatible
set softtabstop=4
set shiftwidth=4
set tabstop=4
set expandtab
" Don't redraw the screen unless necessary "
set lazyredraw