neovim 以及 tmux 配置

本文介绍了如何配置Neovim,包括下载init.vim,安装必要的支持包和Vim-Plug,设置初始化环境,并将'nvim'设置为默认编辑器。此外,还讲解了tmux的安装过程,通过sudo apt install tmux获取,克隆.gpakosz/.tmux配置文件,并链接到本地tmux.conf。

neovim 以及 tmux 配置

neovim

download init.vim (自行google ~)

  1. update apt-get by running
sudo apt-get update
  1. Install supporting packages
sudo apt-get install software-properties-common
sudo pip3 install neovim
  1. Install neovim
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim
  1. Install Vim-Plug
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  1. Setting up initialize environment.
mkdir -p ~/.config/nvim
mv ./init.vim ~/.config/nvim
  1. Typing ‘nvim’ in console, then run in the neovim
:PlugInstall
  1. 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

  1. sudo apt install tmux

  2. cd

  3. git clone https://github.com/gpakosz/.tmux.git

  4. ln -s -f .tmux/.tmux.conf

  5. cp .tmux/.tmux.conf.local .

  6. tmux source-file ~/.tmux.conf

Done!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值