Editor: Vim
Do this chanllege: https://www.shortcutfoo.com/app/dojos/vim
Cheatsheet (that I don't know)
My bad habit (mostly motion):
use
3jor3kinstead of hittingjjjjorkkkkEdit at the first of the line:
0i->IMove to first non whitespace char:
0w->^Navigation in current screen:
H/M/Lfirst/middle/lastScroll current line to top of window:
zttandfis different:tis to before the character wherefincludes the character. That's why when you copy to quote you should usevf'instead ofvt'(this will miss the last character before')
Good to use:
Good to navigate based on error message:
Go to line number 12:
12GGo to column 20:
20l
Go to previous location:
``(two backticks)Use bookmark:
ma(mark with a) then`a(go to a)
Good to know:
Swap case:
~(can do it in normal mode)move screen:
CTRL+eorCTRL+y:xis same as:wq
Cheatsheet
%gugU*nN
Use Bookmarks
set: ma
go: `a (go to exact location) or 'a (to go front of the line)
What can it do:
In-file navigation:
Use bookmark:
maand then `aor go to last place: ``
Delete text in multiple lines (block):
go to start of block
ma
go to end of block
d`a
Last updated