Vote count:
0
I am just learning Vim and have been running my Rspec tests in Rails and figured I could make a leader command or something to avoid excessive typing.
To run my specs I am inputting the following command:
:Rake spec
To make this quicker I have added the following line to my .vimrc
map <Leader>t :w | :Rake spec<CR>
However, whenever I open vim I receive the following errors before Vim opens:
Error detected while proecessing /home/[user]/.vimrc:
line 33:
E492: Not an editor command: :Rake spec<CR>
When I type \t in vim, it puts :w into my command box as if it just gave up trying to input the :Rake spec<CR> command altogether.
I am using vim-pathogen to maintain my plugins and have them in the proper folder and the infect command at the top of my .vimrc file.
One thing to note is taht I have looked at Ben Orenstein's .vimrc as a reference and it looks like he uses Vundle and has a command that runs his tests. I'm willing to take the time to figure out and install Vundle, but I really just want to know why the commands from my installed plugins vim-rake and vim-rails aren't available to my .vimrc file.
Aucun commentaire:
Enregistrer un commentaire