Giter Site home page Giter Site logo

my_vim_conf's Introduction

Setup NEOVIM and tmux quickly

Now I migrate to neovim for asynchronous support (although it is support in vim now) and extensibility:

  • When writing Python with vim, np. often stucks for a few seconds, especially on a server with HDD.
  • It is similar for other heavy extensions like YCM.

old readme for VIM

old readme here

Install neovim

Go to latest stable release, download nvim.appimage with browser, wget, or anything you like.

# Linux:
chmod u+x nvim.appimage
mkdir ~/.local/bin
mv nvim.appimage ~/.local/bin  # assume that ~/.local/bin is in $PATH

Let $vimConf be where you store this repository, and git clone this repo to $vimConf.

git clone https://github.com/shinezyy/my_vim_conf.git $vimConf

Link config file to

mkdir -p ~/.config/nvim  # create config dir for neovim
cd ~/.config/nvim
ln -s $vimConf/neovim/neovimrc ./init.vim

cd ~
mv ~/.vim ~/.vim_bak
ln -s $vimConf/vim .vim

Install vimPlug:

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Install pynvim to enable jedi and YCM:

sudo apt install python3-pip
python3 -m pip install --user --upgrade pynvim

If you do not need YCM (C++ support), Then comment out the following line in ~/.config/nvim/init.vim

Plug 'davidhalter/jedi-vim'

Open nvim, and input command :PlugInstall, it will git clone jedi and YCM for you.

If you need YCM (C++ support), you should further install YCM with clang support

cd $vimConf/vim/bundle/YouCompleteMe
sudo apt install cmake
./install.py --clang-completer --verbose

Tmux

If you use tmux and use Ctrl+A for instruction escape.

cd $vimConf
git submodule update --init tmux
cd ~
mv ~/.tmux.conf ~/.tmux.conf_bak
ln -s $vimConf/tmux/.tmux.conf .

Zsh

Install zsh

sudo apt update
sudo apt install zsh

Install on-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install pluging

cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions

Link config file

cd ~
mv .zshrc .zshrc_bak
ln -s $vimConf/zsh/zshrc ./.zshrc

git

cd ~
mv .gitconfig .gitconfig_back
ln -s $vimConf/git/gitconfig ./.gitconfig

my_vim_conf's People

Contributors

changzihao avatar shinezyy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.