← Back to Upcase

Rspec in vim.. keys explaination


(Brian Dear) #1

From the vim-rspec Readme there is this:

map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>

Assuming I am using the default setup (not customizing the keymappings, how would I run one of the above commands within vim? (I’m not sure what Leader means, specifically)


(Jonathan Garvin) #2

The leader key is \ by default, so <Leader>t means \t. Many people use their .vimrc file to remap the leader to some other key. The comma is popular. See also http://stackoverflow.com/questions/1764263/what-is-the-leader-in-a-vimrc-file.