I have this bit of magic in
inoremap <Tab> <c-r>=InsertTabWrapper()<Return> function! InsertTabWrapper() let col = col('.') - 1 if !col || getline('.')[col - 1] !~ '\k' return "\<tab>" else return "\<c-p>" endif endfunction
This works fine on all systems that I use it (insert Tab at beginning of line, autocomplete otherwise), however on one system running VIM v7.0.237 the actual text
InsertTabWrapper() is inserted into the file instead of running the function. Casual googling leads me to believe that any VIM 7.x version should support function calls like this. So what else might be the issue?