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

As M4v3R noted, what Vim does is not usually possible with just custom key bindings. If you're not familiar with it, I would highly recommend giving it a try; even as a beginner if you know only a few commands it'll still save you a ton of time. I find it hard to watch co-workers press arrow keys repeatedly or select text character by character when the same could be accomplished with one or two key presses.

You have two lines and want to swap them? ddp – that's it. 3 key presses. You have a string on the same line as your cursor and need to replace it? ci" – also 3 key presses (Change Inside "Quote).

No editor has configurable key bindings that can do this.

There are tons of tutorials online; this one seems to explain things pretty well: https://takac.github.io/2013/01/30/vim-grammar/



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

Search: