This repository contains my vimfiles, plugins, etc.
It can be cloned directly into a system's ~/.vim
folder.
If that folder is non-empty, git will prevent you from cloning into it, so you'll have to do the init-new-repo-fetch-then-reset-hard shenanigans.
$ mkdir -p ~/.vim
$ cd ~/.vim
$ git clone <this_repo> .
$ mkdir -p ~/.vim
$ cd ~/.vim
$ git init
$ git remote add origin <this_repo>
$ git fetch
$ git reset --hard origin/master
// add or ignore the original files
Plug-ins are installed using Tim Pope's Pathogen. I include some plugins as git submodules, so it's optional to install any of them.
On windoze, the gvim installation typically expects a
folder vimfiles
instead of .vim
. The vimrc
in this
repo changes that location to .vim
for you, but you must
still source that vimrc
because the installation still
expects to use %HOME%/_vimrc
. Add this line to the
top of that file:
source $HOME/.vim/vimrc
assuming that $HOME
on your system is set appropriately.
(Otherwise, try the Windows user directory,
typically found at %USERPROFILE%
)
_vimrc is sometimes name .vimrc, depending on the install