LinuxCommandLibrary

nvim

neovim, a modern Vim fork

TLDR

Open file

$ nvim [file]
copy
Open multiple files
$ nvim [file1] [file2]
copy
Open at line number
$ nvim +[line] [file]
copy
Open in diff mode
$ nvim -d [file1] [file2]
copy
Open read-only
$ nvim -R [file]
copy
Execute command on startup
$ nvim -c "[command]" [file]
copy

SYNOPSIS

nvim [options] [file...]

DESCRIPTION

nvim is Neovim, a modern Vim fork. Extensible text editor with Lua support.
The editor provides improved architecture over Vim. Better plugin system and async support.

PARAMETERS

FILE

File(s) to edit.
+LINE
Start at line number.
-c COMMAND
Execute command after loading.
-d
Diff mode.
-R
Read-only mode.
-u FILE
Use alternate config.
--headless
Run without UI.
--help
Display help information.

CAVEATS

Learning curve from Vim differences. Lua config preferred. Plugin ecosystem differs.

HISTORY

Neovim was forked from Vim in 2014 to modernize the codebase with better architecture.

SEE ALSO

vim(1), vi(1), emacs(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard