Skip to content

Instantly share code, notes, and snippets.

@austenito
Created May 7, 2012 16:28
Show Gist options
  • Save austenito/2628787 to your computer and use it in GitHub Desktop.
Save austenito/2628787 to your computer and use it in GitHub Desktop.

My .vim configuration

Notes

Shortcuts

  • <S-H> - Tab left
  • <S-L> - Tab right
  • <Leader>g - Creates public gist (works in command mode)
  • <Leader>pg - Creates private gist (works in command mode)
  • [num]<Leader>cc - Comment out num lines
  • [num]<Leader>cm - Minimal comment out num lines
  • [num]<Leader>c<space> - Toggle comment on num lines
  • :Mm - Open markdown file in your browser
  • Shift + Arrow Keys - buffer resizing mappings
  • go/gO - insert blank lines without going into insert mode
  • gs - open db/schema.rb
  • gr - open config/routes.rb
  • <Leader>dd - delete all buffers
  • Y - Yank from the cursor to the end of the line
  • vv - select the lines which were just pasted
  • Control + l in insert mode - shortcut for =>
  • Control + n - Open nerd tree
  • S + - surround highlighted code with tags. (t adds <)

Buffer Explorer

  • <Leader>be (normal open) or
  • <Leader>bs (force horizontal split open) or
  • <Leader>bv (force vertical split open)

Plugins

Plugins I use on the daily

@j3j3
Copy link

j3j3 commented May 16, 2012

What an amazing gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment