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

It's also missing H, M, and L for moving the cursor to the top, middle, and bottom of the window respectively. You can also navigate using the % command. For example, you can use 50% to scroll to the middle of the file, 75% to go down 3/4ths of the way, etc.


I rebind all of these keys. I don't know why but I never find this useful in vim. In tmux's copy mode I use them all the time, but ya, I can't quite put my finger on why I never miss them in Vim. A long time ago I mapped `H` to `^` and `L` to `$` but it got too annoying when I'd use Vim on a server. I've met a couple of people since who have those exact mappings, though!


Not to mention using the % key for jumping to the matching bracket. Or tree-sitter for navigating scopes




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

Search: