Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.11 KB

readme.md

File metadata and controls

45 lines (25 loc) · 1.11 KB

Consolation

Build Status

This is a simple plugin to just console.log() out whatever you currently have in your register on the line above your current line.

Usage

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>

Installation

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

Testing

I'm using vim-vspec.

How to set up vim-vspec

How to use Travis CI

Introduction to vspec on vimcasts

The unit tests have to be written in the t directory with the extension .vim.