neovim
download init.vim (自行google ~)
- update apt-get by running
sudo apt-get update
- Install supporting packages
sudo apt-get install software-properties-common
sudo pip3 install neovim
- Install neovim
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim
- Install Vim-Plug
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- Setting up initialize environment.
mkdir -p ~/.config/nvim
mv ./init.vim ~/.config/nvim
- Typing ‘nvim’ in console, then run in the neovim
:PlugInstall
- If you want to replace ‘vim’ / ‘vi’ command to open neovim, run the following commands
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --config vim
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor
tmux
-
sudo apt install tmux
-
cd
-
git clone https://github.com/gpakosz/.tmux.git
-
ln -s -f .tmux/.tmux.conf
-
cp .tmux/.tmux.conf.local .
-
tmux source-file ~/.tmux.conf
本文介绍了如何配置Neovim,包括下载init.vim,安装必要的支持包和Vim-Plug,设置初始化环境,并将'nvim'设置为默认编辑器。此外,还讲解了tmux的安装过程,通过sudo apt install tmux获取,克隆.gpakosz/.tmux配置文件,并链接到本地tmux.conf。
721

被折叠的 条评论
为什么被折叠?



