this post was submitted on 17 Oct 2025
21 points (95.7% liked)
GNU+Linux Humor
5479 readers
1 users here now
Memes, jokes and general humor about GNU+Linux
Rules:
- Posts must be relevant to GNU+Linux or at least an open source unix-like operating system
- No NSFW content
- No hate speech, bigotry, etc
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Very useful for renaming a variable:
*to search "word" under cursor. Try this with hlsearch on::set hlsearch. Thencwto change a match. Alternatenand.to quickly rename more occurrences of the word. Do a:nohto get rid of the highlighting. Maybe try:set noinc, some people prefer the traditional "non-incremental" search.Do all this in normal mode. Vim experts leave insert mode as soon as possible. Almost forgot: Pressing
C-ctakes you back to normal mode without leaving home row.Most important advice: Never touch arrow keys. Keep your fingers on the home row. Learn
hjklmovement (focus onjandk, they are more important). Then get faster by usingb,w,f,o,O,A,I,C-dand all the rest. Learn aboutJ, it's cool. You won't get far withoutuandC-rthough.Critically important advice for fellow Europeans: If you care about vim, consider learning the US keyboard layout. Default bindings are not convenient in other layouts like qwertz (where is forward slash on qwertz? Hello?), and learning US layout might be easier than learning to customize vim. On a typical modern Linux system, there are US layout variants that still allow typing Umlauts, like EurKey or "DE-US", where you type
äby pressing RightAlt+a, for example.