These are settings for Vim.
I've made these public to easily share them between my machines, not for using them directly by others. Everyone should have their own settings for their own Vim usage style.
However, one might always find interesting options/solutions in others' Vim settings.
- Clone the project to the
~/.vim
directory (~/vimfiles
on Windows) - Symlink the
vimrc
in the repo root to~/.vimrc
- initialize submodules to load plugins.
Commands to do the above on Linux:
git clone https://github.com/cseri/cseri-dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
cd ~/.vim
git submodule init
git submodule update
Commands to do the above on Windows:
C:
cd %USERPROFILE%
git clone https://github.com/cseri/cseri-dotvim.git vimfiles
cd vimfiles
git submodule init
git submodule update
and create the link as administrator
C:
cd %USERPROFILE%
mklink .vimrc vimfiles\vimrc
Just pull and update the submodules.
git submodule init
git submodule update
Plugins are handled via submodules. This allows them to stay up-to-date without
manual work. Even pathogen
has its own submodule.
git submodule foreach git pull origin master
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
git add .
git commit -m "Install Fugitive.vim bundle as a submodule."
- Delete the relevant section from the .gitmodules file.
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Commit and delete the now untracked submodule files.
Based on many .vimrc
s found on the Internet and the .vimrc
of Dutow and
Sztupy.
Packaging ideas from here: Synchronizing plugins with git submodules and pathogen
Instructions in README from here: Dudarev's dotvim repo on GitHub