I’m new to vim and I find that I am using the following command a lot: !rspec %. I would like to add this to my .vimrc file using a key mapping of something like <leader>rs; however, when I add the following line to my .vimrc it doesn’t work: map <leader>rs !rspec %. Can someone help me correct what I am doing wrong? Thanks!
I’m new to vim and I find that I am using the following command
Share
Does
:map <leader>rs :!rspec %<cr>do the job?I just set up
:map <leader>pp :!apparmor_parser %<cr>with success.