neovim

neovim

Git neovim

Installation

1
2
3
4
5
6
7
8
9
10
git clone https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=Release
git checkout stable

rm -r build/ # clear the CMake cache
# To install the executable to a certain location, use:
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/shells_setup/neovim"
make install
export PATH="$HOME/shells_setup/neovim/bin:$PATH"

make CMAKE_BUILD_TYPE=Release/Debug/RelWithDebInfo

The build type determines the level of used compiler optimizations and debug information: - Release: Full compiler optimizations and no debug information. Expect the best performance from this build type. Often used by package maintainers. - Debug: Full debug information; few optimizations. Use this for development to get meaningful output from debuggers like GDB or LLDB. This is the default if CMAKE_BUILD_TYPE is not specified. - RelWithDebInfo ("Release With Debug Info"): Enables many optimizations and adds enough debug info so that when Neovim ever crashes, you can still get a backtrace.

Edit nvim config

1
2
mkdir ~/.config/nvim/
~/.config/nvim/init.vim

Apple other's config

1
2
3
git clone --depth=1 https://github.com/Avimitin/nvim.git ~/.config/nvim
# or

Error

/bin/sh: 2: cmake: not found

1
2
sudo apt install gcc-multilib
sudo apt install cmake

Could NOT find Gettext

1
sudo apt-get install -y gettext

neovim
https://waipangsze.github.io/2023/05/01/neovim/
Author
wpsze
Posted on
May 1, 2023
Updated on
October 8, 2024
Licensed under