Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

Personal do

# Arch
sudo pacman -S \
	ffmpegthumbnailer
yay -S --noconfirm \
	pdftoppm \
	epub-thumbnailer-git \
	wordnet-common
mkdir -p ~/.config/nvim/dictionary
wget ~/.config/nvim/dictionary/word.txt https://raw.githubusercontent.com/dwyl/english-words/refs/heads/master/words.txt
# Windows 10
set "NEOVIM_CONFIG=%LOCALAPPDATA%\nvim"
# set "NEOVIM_DATA=%LOCALAPPDATA%\nvim-data"
del "%NEOVIM_CONFIG%\cheatsheet.txt"
del "%NEOVIM_CONFIG%\init.lua"
rmdir /S /Q "%NEOVIM_CONFIG%\lua"
mklink "%NEOVIM_CONFIG%\cheatsheet.txt" "%DOTFILES_DIR%\.config\nvim\cheatsheet.txt"
mklink "%NEOVIM_CONFIG%\init.lua" "%DOTFILES_DIR%\.config\nvim\init.lua"
mklink /J "%NEOVIM_CONFIG%\lua" "%DOTFILES_DIR%\.config\nvim\lua"

config

Configure LSP

Configure CMP

Neovim headless service

Note

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

resource

mark

cache

cancel


  1. PPA not working with lazy.nvim

  2. Neovim - Build prerequisites

  3. Install from source