Rspec in vim.. keys explaination

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)

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 vim - What is the <leader> in a .vimrc file? - Stack Overflow.

1 Like