# download and extract# PYTHON_VERSION=3.12.2PYTHON_VERSION=3.8.18
wget -O /var/tmp/python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz"install -d /var/tmp/python; tar -xf /var/tmp/python.tar.xz -C /var/tmp/python --strip-components 1# compilecd /var/tmp/python
./configure --enable-optimizations
make -j 8# altinstall will not replace the system python,# which means you need to use python3.8 and pip3.8 instead of python3 and pip3sudo make altinstall
# of course, you can use ln -s to make python3.8 as default python3,# because the centos 7 system python is 2.7sudo ln -s /usr/local/bin/python3.8 /usr/local/bin/python3
sudo ln -s /usr/local/bin/pip3.8 /usr/local/bin/pip3
install node
Node 17 is the latest version which supports CentOS 7, due to the glibc version.
NVIM_VERSION=0.9.5
wget https://github.com/neovim/neovim/releases/download/v${NVIM_VERSION}/nvim.appimage
chmod u+x nvim.appimage && ./nvim.appimage
# if no error, move it to /usr/local/binsudo mv nvim.appimage /usr/local/bin/nvim
# if error./nvim.appimage --appimage-extract
./squashfs-root/usr/bin/nvim
sudo mv squashfs-root/usr/bin/nvim /usr/local/bin/nvim
# check nvim versionnvim --version
install LunarVim
1
2
3
4
5
LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh)# add the following to ~/.config/lvim/config.luavim.opt.shiftwidth =4 -- the number of spaces inserted for each indentation
vim.opt.tabstop =4 -- insert spaces for a tab