Linux command
nvim 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open file
nvim [file]
Open multiple files
nvim [file1] [file2]
Open at line number
nvim +[line] [file]
Open in diff mode
nvim -d [file1] [file2]
Open read-only
nvim -R [file]
Execute command on startup
nvim -c "[command]" [file]
说明
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.
参数
- +_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.
FAQ
What is the nvim command used for?
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.
How do I run a basic nvim example?
Run `nvim [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does +_LINE_ do in nvim?
Start at line number.