Skip to content

lengarvey/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A hopefully clean Vim config

Installation:

Fork this and then clone to ~/.vim

cd ~
mkdir -p ~/.vim/bundle
git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
ln -s ~/.vim/vimrc .vimrc

launch vim and the plugins will install!

To get fast file searching working properly you must compile vimproc. This should work just from NeoBundle, but if it doesn't refer to the Vimproc github.

To get the fancy glyphs working in vim-powerline you must custom-compile your terminal font. See this blog post for OSX instructions.

Features

  • Uses the excellent NeoBundle to manage plugins.
  • Customised for fast Ruby and Rails development.
  • Custom compiled Source Code Pro font to save you from compiling it yourself.

CtrlP like file navigation using Unite:

Ctrlp like

Recently modified files filtered (uses Unite):

file_mru

Press either Ctrl-m or just enter in normal mode to access this.

Buffer browsing and filtering (uses Unite...):

buffers

Press <Leader>b to access this one.

Multiple cursors just like in Sublime:

Multiple cursors

Here I press <Leader>v then c and then refactor some crappy Ruby code followed by Esc to go back to normal mode.

Async test running

test running

Here I run a test async using vim-dispatch and tmux. Pressing <Leader>r will run my spec and the results are nicely formatted in a quickfix window once the test has finished. You can navigate to points in the stacktrace using standard quickfix commands (:cfirst, :cnext etc) or by switching to that split and hitting enter. Pressing <Leader>R runs a test focused on a particular line.

It also remembers what test was previously run, this means I can switch over to the code and it will remember which test I ran previously supporting a focused test style workflow. In non-test code hitting <Leader>r or <Leader>R has the same effect, it just re-runs the previous test.

About

My vim setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published