02. Default keyboard shortcuts
Neovim is a modern version of Vim, a text editor used on Unix systems. Here are some keyboard shortcuts for working with Neovim:
Basic movement:
h
- Left movementj
- Move downk
- Move upl
- Move rightw
- Move to the beginning of the next wordb
- Move to the beginning of the previous wordgg
- Move to the beginning of the documentG
- Move to the end of the document
Visual mode:
I switch to it in Normal mode by moving v
where the cursor was to mark text.
Normal mode - NORMAL:
I move to normal mode from other modes using ESC
.
i
- Switch to insert mode before the cursorI
- Switch to insert mode at the beginning of the linea
- Switch to insert mode after the cursorA
- Switch to end-of-line insertion modeo
- Insert a new line below the current lineO
- Insert new line above the current linedd
- Delete a linedw
- Deleting a wordyy
- Copying a linep
- Paste the contents of the clipboard under the cursorP
- Insert clipboard contents before cursoru
- Undo the last action performedCtrl + r
- Step forward oppositeu
q
- Closes the window.
- Last commandCtrl + w
- Switch windows
Command mode:
Command mode is invoked with Shift + :
:e + filename
- Creates a new file -:e index.html
:w
- Save changes:q
- Exit the editor:wq
- Save changes and exit:q!
- Exit the editor without saving changes:vs
- Vertical window layout:sp
- Horizontal window layout:colorscheme
- Changes the theme:term
- Opens terminal
Search and replace:
/searched_text
- Search textn
- Skip to the next occurrence of the search textN
- Skip to the previous occurrence of the search text:s/searched_text/replaced_text/g
- Replacing the search text with the specified text throughout the document
Misc:
Ctrl + r
- Re-execute a cancelled action:help
- Display help
Copyright © 2024 - 2025 🚀 ApolloNvim Kankys