This is a simple plugin to just console.log() out whatever you currently have in your register on the line above your current line.
Yank something that you want to console.log into your register and then run:
:Consolate
Or you can add a mapping to your .vimrc
like this:
nnoremap <leader>c :Consolate<cr>
To install, you can use your favorite package manager.
For Vundle users:
Add Plugin 'agarrharr/consolation-vim'
to your ~/.vimrc
and then:
within Vim, run: :PluginInstall
I'm using vim-vspec.
Introduction to vspec on vimcasts
The unit tests have to be written in the t
directory with the extension .vim
.