I'm running MacVim Snapshot 66 on Mac OS X 10.8.
This repo exists for two reasons.
- It's a backup for when I inevitably screw something up.
- It might help vim enthusiasts of beginners figure out what works for them. I recommend taking a look through the .vimrc file and seeing if some of the options appeal to you. They've generally been cherrypicked from all over the web.
Read the documentation below before trying out any of my files on your own install.
If you want to try out my vim configuration, you can. Here's my recommended method of how:
-
Backup your current configuration!* On a *nix system, that might look like:
cd ~ mkdir vim-backup mv .vimrc vim-backup mv .gvimrc vim-backup mv .vim vim-backup
*Seriously! Don't forget to backup your current setup!
-
Clone this repository and move the files into place.
cd ~ git clone git://github.com/daturkel/vim-config.git cd vim-config mv .vim .. mv .vimrc .. mv .gvimrc .. -
That should be it! Reopen vim and it should all be working.
-
How do I uninstall it?
It's easy to uninstall too:cd ~ rm -rf .vim rm .vimrc rm .gvimrc mv vim-backup/.vimrc .. mv vim-backup/.gvimrc .. mv vim-backup/.vim ..
And you're done!
- .vimrc: this is vim's runtime configuration file and contains the settings that make my vim special; this is commented to help you understand what lines are doing
- .gvimrc: these are just a few settings that pertain particularly to vim running in a graphic user interface (aka gvim); this too has comments to help explain it
- WC: running
:WCgives you a wordcount in your statusbar - CB: running
:CBfor "Center Buffer" creates two vertical splits, one to the right and one to the left of your current buffer, and then sets all three equal in width—this is nice in fullscreen in MacVim
The following are directories inside the .vim directory:
- autoload: Pathogen (see below) is placed in here so that it automatically adds bundles on startup
- bundle: Pathogen essentially tricks vim into thinking anything folder in this folder is actually
~/.vim/so that you can just drag all of a plugin's files a folder here or delete the whole plugin at once. - colors: contains the wombat colorscheme which I use
- spell: this contains the words added to vim's built in dictionary—I recently reset it so right now it hardly contains anything
- ctrlp: easy full-path fuzzy file finder
- Pathogen: manage vim plugins easily
- SuperTab: insert-mode tab-key autocompletion
- Vim-Latex: tools for LaTeX editing in vim
- vim-markdown: adds markdown syntax detection for vim
- vim-startify: gives me a nice startup page for vim
- ZenCoding-vim: replacing xmledit and ultisnips and sparkup for quick html writing—finally decided that this is the plugin I want