Skip to content

Instantly share code, notes, and snippets.

@mcamiano
Created May 15, 2012 18:09
Show Gist options
  • Save mcamiano/2703832 to your computer and use it in GitHub Desktop.
Save mcamiano/2703832 to your computer and use it in GitHub Desktop.
Installing VIM under Windows
set nocompatible
set backupdir=~/tmp " keep vim's temp files out of your repos
" Use pathogen to easily modify the runtime path to include all plugins under
" the ~/.vim/bundle directory
filetype off " force reloading *after* pathogen loaded
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
filetype plugin indent on " enable detection, plugins and indenting in one step
function OpenNERDTree()
execute ":NERDTree"
endfunction
command -nargs=0 OpenNERDTree :call OpenNERDTree()
nmap ,d :OpenNERDTree<CR> " "comma-d" is used to open nerdtree; use :q to close it
First, get VIM for Windows at <a href="http://www.vim.org/download.php#pc" title="vim for windows download site">the download location</a>.
Install vim. This may simply be unzipping a folder. Note the location you placed the files.
Next, open a command terminal in your %USERPROFILE% directory, and
mkdir tmp
mkdir vimfiles
mkdir vimfiles\bundle
cd vimfiles\bundle
git clone https://github.com/scrooloose/nerdtree
Then, go to the VIM install location (whatever it happens to be)
cd %USERPROFILE%\my_apps\vim72
Now, place a copy of the autoloadd/pathogen.vim file into vim's autoload directory.
(you can copy it from the github page or do a git clone https://github.com/tpope/vim-pathogen)
Finally, edit %USERPROFILE%\_vimrc per the next file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment