Written by Serban Spirescu
Published on: 2022-07-01
This is the first post of my new Astro blog.
:q! <Enter>
- quit Neovim, without savingh (left), l (right), j (down), k (up)
- navigation or use arrowsx
- delete character on top of cursori
- Insert mode, press Esc
to go back to Normal Modecapital A
- Append text to end of line, this command will enter Insert Mode, press Esc
to go back to Normal Mode
nvim FILENAME
— open FILENAME in nvim:wq <Enter>
- save file and quit Neovimd
is the delete operator. Combine d
with motions below, example type dw
:w
move cursor across a line to the beginning of each worde
move cursor across a line to the end of each word$
move cursor to the end of the line, similar to the End key
NOTE: delete operator d
acts as a cut action
dd
to delete an entire line, including newline character, which means the below line moves upu
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.