I’ve been learning a lot of vim lately, and honestly I’m very addicted. Here are some tricks I’ve learned today.
(Note that by default vim is set to use \ as
Run rspec right from vim.
map <Leader>t :w\|!rspec spec<cr>
Run rackup directly from vim
map <Leader>r :w\|!rackup<cr>
Temporarily switch out of vim back to the console
To suspend vim and switch to the console:(C = Control)
To switch back to vim when you’re done, type: