hoodwink.d enhanced

Tue Oct 3

Tab completion in vim

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>

37signals

Ryan S. - some of the lightning last night was amazing
Ryan S. - some of the peals of thunder were _long_
Ryan S. - like ripping fabric