Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

in vim A (capital!) jumps to the end of the line in insert mode and semicolons get in the way

this is literally the only objective reason i have ever seen for using/not using semicolons



Hacked this together in a couple seconds, there is probably a better way:

    nnoremap A :call EndOfLine()<CR>a

    fu! EndOfLine()
        normal $
        if getline(".")[col(".")-1] == ';' 
            normal h
        endif
    endfunction




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: