Opening Neovim
Open a terminal window on your computer.
Type the following command to launch Neovim:
nvim <file_name>
where<file_name>
is the name of the file you want to edit. For example, if you want to edit a file namedexample.txt
, you would type:nvim example.txt
.Neovim will launch and you will be in normal mode.
Entering Text
To start entering text, press the
i
key to switch to insert mode.Type your text as you would in any text editor.
To return to normal mode, press the
Esc
key.
Saving and Quitting
To save your changes, press
:
to enter command mode.Type
w
followed byEnter
to save the changes you made to the file.To quit Neovim, type
:q
followed byEnter
.