2017. 3. 14. 20:35

VIM 탭 자동완성

http://nabiro.tistory.com/274


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>