In case I play with Ruby, here is code for tab completion (via Brian McCallister via IRC monkeys)
function InsertTabWrapper()
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
else
return "\<c-p>"
endif
endfunction
Add your comment