Terminal / Vim Setup
This term terminal always refers to wsl Ubuntu 20.04.
During setup if not using username cup
there will edits in files to make.
-
Install Powerline (powerhell script)
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts && ./install.ps1
cd .. && rm -rf fonts
-
mkdir ~/git && cd ~/git
-
git clone https://github.com/raymonddavis/vim
-
cp -rf ~/git/vim/wsl.conf /etc/wsl.conf
-
Close terminal. open cmd and run
wsl.exe --shutdown
. Relaunch terminal. -
Merge wsl settings.json (
<C-,>
) with settings.json in repo. (Settings assume windows is in dark mode) -
Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
-
Install zsh
sudo apt install zsh
chsh -s $(which zsh)
-
Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
Copy .zshrc
cp -rf ~/git/vim/.zshrc ~/.zshrc
- (Optional) Change username if not cup
vim ~/.zshrc
:%s/cup/_USERNAME_HERE_/g
:wq
- Remove ssh key from keychain
vim ~/.zshrc
:g/^\/usr\/bin\/keychain/d
:wq
-
Install Tmux
sudo apt install tmux
-
Copy .tmux.conf
cp -rf ~/git/vim/.tmux.conf
-
Install keychain
sudo apt-get update
sudo apt-get install keychain
-
Install Pure
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
-
Source
sz
-
Copy nvim
mkdir ~/.config && cp -rf ~/git/vim/nvim ~/.config
-
Install Neovim Nightly
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
sudo apt install python3-neovim
- There is another python install but it will tell you in an error message later.
-
Install vim-plug
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 ripgrep
sudo apt-get install ripgrep
-
PlugInstall
e
- Page Down Until you can hit enter ignore errors
:PlugInstall
- Open (
e
) and close (:q
) nvim until errors are gone - Fix psf/black:
pip3 install --upgrade git+https://github.com/psf/black.git