Skip to content

Latest commit

 

History

History
72 lines (44 loc) · 1.65 KB

neovim.md

File metadata and controls

72 lines (44 loc) · 1.65 KB

Neovim notes

Website - Documentation - Source Apache-2.0

Neovim is a hyperextensible Vim-based text editor.

The notes are meant to provide a series of steps, which anyone may follow quickly.

Installation

Debian-based systems

sudo apt update
sudo apt install -y neovim

Arch

sudo pacman -S neovim

Fedora

sudo dnf install neovim

Windows

Scoop

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh -outfile 'install-scoop.ps1'

Verify install-scoop.ps1 contains what it should.

.\install-scoop.ps1
scoop install neovim

Run

Run nvim from the command line usually with a filename after.

nvim file.txt

Exit

To save and exit, use esc key, :wq, and the enter key. w stands for write. q stands for quit.

To quit without saving, use :q! instead.

Learning how to use neovim

Once inside nvim type :Tutor and enter to start the tutorial.

Configuration

Note that settings of neovim are kind of personal and do not just copy others settings without understanding how things work. Using neovim without any configuration is fine and might be preferable if you find yourself working on remote systems often.

My simple neovim config is in dotfiles.

Another neovim config with Lazy.nvim dotfiles

Additional sources