|
Move one character to the right |
||
|
Move one character to the left |
||
|
Delete selection |
||
|
Go to the beginning of the line |
||
|
Go to the end of the line |
||
|
Go to the previous line |
||
|
Copy selection to the clipboard |
||
|
then type "/search key" : Search |
||
|
Go to the next line |
||
|
Move to next match |
||
|
Move to previous match |
Advertisement
To edit opened file, you need to switch to INSERT mode. This can be done by pressing Insert key.
|
|||
In the insert mode, these shorctuts can be used to move the cursor:
|
To select text via keyboard, you need to enter VISUAL mode. To do this, first exit the insert mode by pressing Esc.
|
|||
Once you place the cursor at the beginning of the part we want to select, we use the keys CTRL + v to enter the V-BLOC (Visual Block) mode.
|
|||
Now moving with the cursor we will see that our selection will be highlighted.
|
|||
Text search |
|||
When you finished searching, the highlight can be removed by the command Shift + :noh (no highlight).
|
|||
Saving the document |
|||
First press Esc to exit INSERT mode then press Shift + :w to save file with the current name.
|
|||
To save with different name, use the following command:
|
|||
:w /path/to/new/file_or_position
|
|||
To save and quit, use Shift + :wq (write and quit).
|
|||
Source: rockylinux.org
|
What is your favorite NvChad hotkey? Do you have any useful tips for it? Let other users know below.
1109400
499338
411810
368063
308188
278653
17 hours ago
21 hours ago
Yesterday Updated!
2 days ago Updated!
2 days ago Updated!
3 days ago Updated!
Latest articles