Skip to content

acomagu/nvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvc: Neovim Remote Client

A CLI to control NeoVim via its RPC API.

Inspired by mhinz/neovim-remote.

Usage

Usage: nvc [--version] [--help] <command> [<args>]

Available commands are:
    ex         execute command
    openwin    open window

The NVIM_LISTEN_ADDRESS environment variable must be set. In terminal mode of NeoVim, it should set normally.

Example

For example, ex sub-command runs a command in ex-mode. No need to prefix :.

To show message in command line,

$ nvc ex echo \'abc\'

To open file in current buffer,

$ nvc ex e a.txt

(Note that you must pass relative path from NeoVim's current directory or absolute path)

Installation

$ go get -u github.com/acomagu/nvc

What is the advantage over neovim-remote?

Speed.

Comparison of running :echo 'abc' as ex-command from CLI:

Average Time Ratio
nvc 0.007s 1x
neovim-remote 0.494s 70.6x

70x faster!

Contributing

Welcome!

We have a lot of missing functions.

Author

acomagu

About

Command-line tool to control NeoVim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages