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

Tips:

- bind going back to normal mode to something other than Esc. Popular ones are capslock, Ctrl-[, jj, and jk

- use forward/back by word (w, e, and b) rather than going by character. Add numeric prefixes for faster jumping, eg jump to end of 3rd word with 3e

- turn on relative line numbers and use prefixes to jump to the desired line, eg 10j to go down ten lines, copy lines (y10j), etc.

- use f to go forward to a desired character, eg fk to go to the next k

- use i to apply actions to whatever is inside of brackets/parens/etc. Eg delete everything inside of parens with di), copy everything inside of braces with yi}

- I don’t remember if you have to turn it on specifically, but the vim mode for vscode supports vim surround, so you can do stuff like: change surrounding single quotes to double quotes with cs’”, add double quotes to word with yse”, etc



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

Search: