vim configuration file
Clone the repository to some local directory, and execute
./set_up_vimrc.sh
Currently it requires pip
(for autopep8
) and node
(for coc-nvim
) to be installed in the system.
The set_up_vimrc.sh
script is intended to be used for linux systems exclusively.
On Windows, if there is a wsl with vim initialized using the above method, you can perform the following manual setup to share the configuration file and plugin files for the Windows machine:
- Set the
$HOME
environment variable toC:\Users\<username>
. This can be done permanently in the control panel or temporarily using Powershell. - Create a hard link from the original
.vimrc
file toC:\Users\<username>/_vimrc
.- In Powershell, use something like
New-Item -ItemType HardLink -Path C:\Users\<username> -Name _vimrc -Value path\to\original\.vimrc
. - If run with admin, can replace
HardLink
withSymbolicLink
, so that vim can infer the actual directory when editing the configuration file.
- In Powershell, use something like
- Create a junction from the original
.vim
directory toC:\Users\<username>/.vim
. (In Powershell, use something likeNew-Item -ItemType Junction -Path C:\Users\<username> -Name .vimrc -Value path\to\original\.vim
).
Now type vim
in Powershell, the configuration and plugins should be loaded.