My First Blog Post

Written by Serban Spirescu

Published on: 2022-07-01

This is the first post of my new Astro blog.

:q! <Enter>  - quit Neovim, without saving

h (left), l (right), j (down), k (up) -  navigation or use arrows

x -  delete character on top of cursor

i - Insert mode, press Esc to go back to Normal Mode

capital A - Append text to end of line, this command will enter Insert Mode, press Esc to go back to Normal Mode

From Terminal type nvim FILENAME — open FILENAME in nvim

:wq <Enter> - save file and quit Neovim


d is the delete operator. Combine d with motions below, example type dw:

NOTE: delete operator d acts as a cut action


dd to delete an entire line, including newline character, which means the below line moves up

u undo

U undo entire line

<C-r> (Control + R) redo

p (put) paste deleted characters by the d operator

r - replace command, followed by the character to be replaced with, at cursor position; Example: rx replaces the character at the cursor position with x.

c change command, is used with the same motions as delete. When using c, you will enter Insert mode automatically; Example: c$ deletes characters from the cursor position to the end of the line and activate Insert mode.