- Clone this repo to a local directory. For example to clone to the
~/dotfiles/dotvim
directory under the home directory, run the following command:
mkdir -p ~/dotfiles
git clone git://github.com/pythonquick/dotvim.git ~/dotfiles/dotvim
-
Install font(s) from ~/.vim/fonts directory
-
From .vim directory, run script to setup files: 3.1 On Windows:
winsetup.bat
3.2 On *nix, in this repo's directory, run following command: 3.2.1 for neovim run: Say the repo was cloned into directory ~/dotfiles/dotvim, run the following commands:
mkdir -p ~/.config/nvim
ln -s ~/dotfiles/dotvim/vimrc ~/.config/nvim/init.vim
3.2.2 for vim run: Say the repo was cloned into directory ~/dotvim, run the following commands:
ln -s ~/dotfiles/dotvim/vimrc ~/.vimrc
- Start VIM and run :PlugInstall to download and install plugins listed in vimrc file
See Tim Pope's ctags blog post
about setting up a global git hook to generate the tags
file using ctags
whenever merging, committing or checking out.
See Time Pope's ctags for rbenv plugin readme.
The neovim auto-completion plugin Deoplete requires neovim with python3 support. Follow the setup instructions on the Deoplete page.
For Ruby autocompletion, setup the solargraph
language server and plugin.
See deoplete-solargraph
On Windows, set up context menu "Edit with Vim" by importing a .reg file with following content.
This assumes gvim
is installed at C:\Program Files\Vim\vim74\gvim.exe
. Adjust as necessary.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Edit with Vim]
[HKEY_CLASSES_ROOT\*\shell\Edit with Vim\command]
@="C:\\Program Files\\Vim\\vim74\\gvim.exe \"%1\""