Here you'll find instructions that I followed to obtain my current VIM installations. Here are some screenshots:
On WSL2 execute
bash install-wsl.sh
type your password if necessary, do not set zsh a default terminal (if oh-my-zsh) asks for it. Install nerd fonts, set them in Windows Terminal, restart shell.
Where are several steps you need to follow. Some of them include little hacks (like installation of Powerline fonts) but I'll provide all links to articles that describes such hacks very well.
More instructions can be found here.
-
Copy
.vimrc
from this repo to your~/.vimrc
(if you are on Linux or MacOS) or to${HOME}/.vimrc
(if on Windows) -
Restart VIM instance. Type
:PlugInstall
for installing all plugins mentioned in.vimrc
-
Go to hacks section for additional steps. Where are some cosmetic actions you need to take.
We store undo history in special directory ~/.vim/undodir/
. Make sure to create it in advance:
mkdir ~/.vim/undodir/
These hacks are optional. In each section, I'll give options how to handle without them if you want.
As YCM has compilable component, you need to do some extra work described here.
If you don't want to install it, comment whole YouCompleteMe
section in .vimrc
If you are running in WSL (like me), you should refer to a good article on Medium. It describes process very well.
In other cases, instructions on official vim-airline page should be enough.
If you don't want to follow this step, comment let g:airline_theme='powerlineish'
in .vimrc
file
If you have any ideas of optimizing suggested .vimrc
, open an Issue.