I started taking notes on the Neovim tutorial, which I must say has been a bunch of fun so far. If people like it I will happily post more, if not I probably will keep taking them in the manner below. I could not figure out how to copy and paste from a neovim terminal so I cheated tonight.
I have learned how to navigate NeoVim using hjkl; h goes left, j goes down, k, goes up, and l goes right because qwerty keyboard.
To start Neovim from the terminal I type nvim, if I want to open a file I write that name after.
To exit without saving I press to get to normal mode and type :q! and press
If I want to save what I wrote I type instead, I would guess it stands for write and quit.
Characters can be deleted with x, i inserts text of course, and A appends text. Always remember to press otherwise you will be stuck
forever typing commands to no one. Hello noone, please let me keep my eyes. I am no son of Posiden nor have I devoured your crew.
Things got a bit dicey there with sly Odysseus lurking in the wings, lucky for me that I am no cyclops nor have anything that man would value.
Unless he values entrylevel neovim instructions, in that case he would be in luck. Better for mortals to avoid the Greek Gods and their spawn, just ask Odysseus’s crew if you don’t believe me.
Lesson 2.0 or deletion and motions
If you start at the beginning of an unwanted word press dw and it is gone in the blink of a cyclops’ eye.
If you want to delete from the cursor to the end of the line press d$, I don’t have a quip for that one.
If you want to delete a line, like Odysseus deleted his crew and the suitors press dd.
Motions move your cursor around the screen 0 takes you to the start of the line, w takes you from word to word, and $ to the end of the line (money may take one far, to heaven or hell? I dare not guess).
You can use operators like d for delete in combination with [numbers] and motions for some fancy gymnastics. If you make a mistake use u to undo a previous action and if you really screwed the pooch like
my friend Odysseus capitalize that U to undo all the changes in the line. The gods may decree that you must make those mistakes and type to undo the undos. That is it for me next time it is on to lesson 3.