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

And hjkl is not the arrow keys' replacement, as many non-users think.

There are a hundred other ways to move around a file, each of which are more efficient than hitting a button ten times. Those kinds of things are what makes Vim convenient (though not having to move your hand to the arrow keys for going one line down is pretty convenient, too).



I'm a Vim fan, but that's a little disingenuous.

Ordinary text editors have ctrl-left and ctrl-right, which are equivalent to Vim's w and b. They also have Home/End and ctrl-f.


But w and b are not the end of vi's (let alone vim's/neovim's + plugins') motions.


Sure, but it's not often I win big by using Vim's advanced movement commands.


One of the most useful Vim motions for me has been repeating j / k for n times, e.g using 12j to jump down 12 lines.

Combined with relative line numbers (to show how many lines to jump up / down) this has been a really big win for me to navigate around text.


Shift-G / gg are “big” wins for me on a fairly regular basis.


That's a good example, but I suspect most editors/IDEs have their own equivalent shortcuts.

Apparently in Visual Studio it's SHIFT+CTRL+HOME.


Not all keyboards have a home key and the vast majority have a shift/g key, but yes, i agree.


you don't use `)` or any other object motion? You should (consider)! `:help object-motions`




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

Search: