Article vim + ruby

Published

Mon, 24 Jan 2005

Tags

ruby

0 comments


subscribe

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