A Beginner's Guide to Using Neovim

Photo by Eric Masur on Unsplash

A Beginner's Guide to Using Neovim

·

1 min read

Opening Neovim

  1. Open a terminal window on your computer.

  2. 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 named example.txt, you would type: nvim example.txt.

  3. Neovim will launch and you will be in normal mode.

Entering Text

  1. To start entering text, press the i key to switch to insert mode.

  2. Type your text as you would in any text editor.

  3. To return to normal mode, press the Esc key.

Saving and Quitting

  1. To save your changes, press : to enter command mode.

  2. Type w followed by Enter to save the changes you made to the file.

  3. To quit Neovim, type :q followed by Enter.