Dan's Vim Configuration
I'm running MacVim Snapshot 67 on Mac OS X 10.9.
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.
Try it out
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
- Markdown Preview: Press
pin a markdown document to open it in Marked.app
The following are directories inside the
- after: I have a file in here which stops Vim from spellchecking my Startify screen.
- bundle: Vundle uses this to store my plugins
- 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
- HTML5: support for html5 tags in syntax highlighting
- SuperTab: insert-mode tab-key autocompletion
- Vim-Airline: a light-weight statusline replacement
- vim-endwise: autoinsert "end" for Ruby
- 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
- Vundle: lets me easily manage my plugins and also automatically update them using Git :)