Skip to content

nco71/vim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dan's Vim Configuration

I'm running MacVim Snapshot 66 on Mac OS X 10.8.

This repo exists for two reasons.

  1. It's a backup for when I inevitably screw something up.
  2. 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:

  1. 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!

  1. 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 ..
    
  2. That should be it! Reopen vim and it should all be working.

  3. 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!

Files

  • .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

Functions

  • WC: running :WC gives you a wordcount in your statusbar
  • CB: running :CB for "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

Directories

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

Plugins Installed

  • 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

About

My vim configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published