Neovim

Neovim is a Vim-based text editor engineered for extensibility and usability, to encourage new applications and contributions. [neovim.io]

Neovim是一个基于Vim的文本编辑器,旨在提高可扩展性和可用性,以鼓励新的应用程序和贡献。 [neovim.io]

install

# Arch
sudo pacman -S neovim
# Windows 10
scoop insatll neovim

Build from source

1 2 3

# Ubuntu 22 ARM
sudo apt-get install ninja-build gettext cmake unzip curl
  1. Get Source code from Neovim - Releases.
  2. Decompress it to neovim/.
cd neovim
# rm -r build
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/neovim"
make install
ln -s ~/neovim/bin/nvim ~/.local/bin/
# rm -rf ~/.local/share/nvim/lazy/
nvim

Neovim headless service

Not recommended. I suspect it once kill my RPI-5's os.

On Ubuntu 24 ARM:

vim ~/.config/systemd/user/nvim-headless.service
[Unit]
Description=Start Neovim Headless Server

[Service]
ExecStart=nvim --headless --listen 0.0.0.0:1234
Restart=on-failure
User=<username>

[Install]
WantedBy=default.target
systemctl --user daemon-reload
systemctl --user enable --now nvim-headless

On Windows10:

C:\Users\User\Scoop\apps\git\current\usr\bin\ssh.exe <username>@<your_host> -L 1234:0.0.0.0:1234 -- /home/<your_host>/.local/bin/nvim --headless --listen 0.0.0.0:1234
neovide --server <your_host>:1234

reference

cross-reference

mark

extra

cache

resource

mark

later

cache

cancel