2 ms·
I like autocomplete in my .vimrc function! InsertTabWrapper() let col = col('.')-1 if !col || getline('.')[col-1]!~'\k' return "\<tab>" else retu
by nikhilpandit 17y ago
I like autocomplete in my .vimrc
function! InsertTabWrapper()
let col = col('.')-1
if !col || getline('.')[col-1]!~'\k'
return "\<tab>"
else
return "\<C-P>"
endif
endfunction
inoremap <tab> <C-R>=InsertTabWrapper()<CR>