function! TabOrCompletion() let col = col('.') - 1 if col==0 || getline('.')[col - 1] !~ '\k' return "\<TAB>" else return "\<C-N>" endif endfunction inoremap <tab> <c-r>=TabOrCompletion()<cr>
In reply to Re: (OT) tab completion for code?
by tilly
in thread (OT) tab completion for code?
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |