Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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>



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: