Vim
Last updated
Last updated
For now, I use Vim to write my code on WSL (that's because CS1010 uses vim ). So, I decide to migrate the vim setup from CS1010 on my pc.
Since setting up vim and managing plugins on Windows is tedious and not elegant. I decide to use Vim on my WSL (Ubuntu). Below are the necessary configuration files:
Copy the .vimrc
to your HOME directory. You can do this by using
to clone the whole repository somewhere on your pc, cd
to the repo's root directory and then use
to copy .vimrc
to your HOME directory (~
)
Then, copy the .vim
folder to your HOME directory also using
Now, the setup is done!
The way Windows manages vim plugins is a bit different from how Ubuntu/macOS manages it. Basically, on windows, the equivalent of .vim/
on Unix/macOS is called vimfiles/
, which is located under your HOME directory.
Copy the .vimrc
to your HOME directory.
Copy all the files from the .vim/colors/
to the vimfiles/colors/
on your Windows machine.
Copy the .vim/pack/
folder to the vimfiles/
.
It's all done!
To copy your code written on WSL Vim to your Windows clipboard. We can do a vim visual selection then do the command:
The following command saves the whole file to the clipboard (not the requirement):