Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agarrharr/consolation-vim
🤗 A vim plugin for JavaScript to console.log out whatever you have in the register.
https://github.com/agarrharr/consolation-vim
vim vim-plugin
Last synced: 10 days ago
JSON representation
🤗 A vim plugin for JavaScript to console.log out whatever you have in the register.
- Host: GitHub
- URL: https://github.com/agarrharr/consolation-vim
- Owner: agarrharr
- License: mit
- Created: 2015-08-22T18:27:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-17T21:34:11.000Z (about 7 years ago)
- Last Synced: 2024-04-12T18:19:21.169Z (10 months ago)
- Topics: vim, vim-plugin
- Language: Vim script
- Homepage:
- Size: 7.81 KB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Consolation
[![Build Status][travis-badge]][travis-page]
[travis-badge]: https://api.travis-ci.org/agarrharr/consolation-vim.svg?branch=master
[travis-page]: https://travis-ci.org/agarrharr/consolation-vim> 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 c :Consolate
```## 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](https://github.com/kana/vim-vspec).
[How to set up vim-vspec](http://whileimautomaton.net/2013/02/13211500)
[How to use Travis CI](http://whileimautomaton.net/2013/02/08211255)
[Introduction to vspec on vimcasts](http://vimcasts.org/episodes/an-introduction-to-vspec/)
The unit tests have to be written in the `t` directory with the extension `.vim`.