Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Codegram vimfiles
branch: master

This branch is 85 commits ahead, 3 commits behind codegram:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
autoload
colors
ftdetect
snippets
.gitignore
Readme.md
install.sh
update_bundles
vimrc

Readme.md

vimfiles

The vimfiles we use at Codegram. Best vim config ever :)

Ready for VIM 7.3!

Installation

In your home directory:

git clone https://github.com/codegram/vimfiles.git .vim

sh .vim/install.sh

Mappings

Use with caution: strongly opinionated config

Normal mode

  • Space => Search, with very magic by default ("Normal" regex mode, more info)
  • ,Space => Clear search highlight
  • ,v => Splits to a new vertical split and switch to it
  • Control + [h,j,k,l] => move between splits
  • Tab => Next buffer
  • Shift + Tab => Previous buffer
  • ,q => Save and close all (:wqa!)
  • ,w => Save (:w!)
  • ,Esc => Quit without saving (:q!)
  • F4 => Toggle Numberlock mode (Numbers mapped to !"·$%&/()...)
  • Shift + r => Execute current buffer as ruby
  • ,d => Delete current buffer (bd)
  • ,D => Delete all buffers

Visual mode

  • ,g => git blame
  • ,h => get a link in the clipboard referencing the selected lines in Github

Insert mode

  • jj => Back to normal mode

Plugins related

  • ,a => Ack search
  • ,a| => Align Cucumber Tables
  • ,a= => Align lines with =
  • ,a: => Align lines with :
  • Control + [n,p] => Rotate Ack results
  • ,co => Comment lines
  • ,b => Fuzzy buffer explorer
  • ,l => Tag list
  • ,o => PeepOpen
  • ,p => Nerd tree
  • ,R => RbREPL

Plugins

Colorschemes

Some considerations

  • Leader is ,
  • Nullified arrow keys
  • No backup files
  • Move cursor by display lines instead of physical (j => gj)
  • Autosave on lose focus
  • _ is a word separator
  • Font is Monaco 12

TODO

  • Better description
  • Document paste stuff
Something went wrong with that request. Please try again.