I can’t sleep, so I’m learning vim
My mentor always said that if you understand something, you can easily explain it.
That is why I will always try to make a presentation when I learn something.
ideas VIM
- Change the name for blog to “Fullstack Lacking” or “Code Conf Essions”. What you think about that?
- Try learning vim number #1_500_100_987
learnings VIM
-
You can use vim motion in vscode, external https://marketplace.visualstudio.com/items?itemName=vscodevim.vim
- 4 vim modes:
-
normal
esc
for normal mode
- insert
i
for insert before cursora
for insert after cursorI
for insert at beginning of lineA
for insert at end of lineo
for insert new line belowO
for insert new line above
- visual
v
for visual modeV
for visual line mode
- command
:
for command modeq
for quitw
for writewq
for write and quitq!
for quit without saving
-
- move
hjkl
to moving aroundb
to beginning of worde
to end of wordw
to next word0
to beginning of line$
to end of linegg
to beginning of fileG
to end of file- number lines relative:
12j
for moving 12 lines down,12k
for moving 12 lines up
- edit
x
for delete characteru
for undoyy
for copy liney
for yank, copyp
for paste
- delete
daw
worddd
line, after that you can paste it withp
d$
to end of lined0
to beginning of line
- To copy text from vim to an external program. Type
"*y
the selected text is copied to the system clipboard
challanges VIM
- fck VIM
- fight with jekyll for blogging, I installed it on my local machine, still not sure what was the problem to not generate the new post, probably flag for future post need to be set to true in config.yml
finds VIM
- settings my vscode from https://www.youtube.com/watch?v=GST8we5uABo&ab_channel=Melkey, link to repo https://github.com/Melkeydev/vscode_bindings/tree/main
I encourage you to learn VIM, it’s a great tool for developers.
And start cry with me on keyboard.
-
100x faster than mouse coding.
-
10x for looking cool on presentation / live coding.
-
10 typos in each PR.
Thanks VIM for ❤️
Love,
KK