All Projects → skwp → Vim Ruby Conque

skwp / Vim Ruby Conque

Vim plugin to display ruby, rake, and rspec output colorized in ConqueTerm. Note: repeated runs of conqueterm may cause it to eat your shell ttys. I am no longer maintaining this.

Labels

Projects that are alternatives of or similar to Vim Ruby Conque

Viki vim
A personal wiki for Vim
Stars: ✭ 52 (-14.75%)
Mutual labels:  viml
Vim Alignta
Align Them All!
Stars: ✭ 54 (-11.48%)
Mutual labels:  viml
Vim Partial
Makes creating partials in your code a breeze!
Stars: ✭ 58 (-4.92%)
Mutual labels:  viml
Ansible Splunk Simple
Simple deployment of Splunk using Ansible, static host lists.
Stars: ✭ 53 (-13.11%)
Mutual labels:  viml
Vim Giphy
Giphy in your vim
Stars: ✭ 54 (-11.48%)
Mutual labels:  viml
Vim Better Javascript Completion
An expansion of Vim's current JavaScript syntax file.
Stars: ✭ 55 (-9.84%)
Mutual labels:  viml
Buffet.vim
A vimplugin for switching and managing buffer lists
Stars: ✭ 52 (-14.75%)
Mutual labels:  viml
Vim Blockle
Brace yourself, it's time to toggle your ruby blocks!
Stars: ✭ 60 (-1.64%)
Mutual labels:  viml
Vimdown
A dirty tool to convert .vimrc and .vim script files to markdown
Stars: ✭ 54 (-11.48%)
Mutual labels:  viml
Vim Holylight
A Vim plugin for MacBook users that automatically sets the background to light or dark depending on the ambient light
Stars: ✭ 57 (-6.56%)
Mutual labels:  viml
Javacomplete
Omni Completion for JAVA
Stars: ✭ 53 (-13.11%)
Mutual labels:  viml
Yaml Vim
YAML Highlight script for VIM editor
Stars: ✭ 53 (-13.11%)
Mutual labels:  viml
Vim Sauce
Multiple source file management for Vim
Stars: ✭ 55 (-9.84%)
Mutual labels:  viml
Bookmark
[DEPRECATED] 웹 즐겨찾기
Stars: ✭ 53 (-13.11%)
Mutual labels:  viml
Bisectly
Binary search tool
Stars: ✭ 59 (-3.28%)
Mutual labels:  viml
Pep8
Check your python source files with PEP8
Stars: ✭ 52 (-14.75%)
Mutual labels:  viml
Rubyblue
A collection of themes for different text editors that mimic the colors used in the code samples on ruby-lang.org
Stars: ✭ 54 (-11.48%)
Mutual labels:  viml
Colorsbox
Stars: ✭ 61 (+0%)
Mutual labels:  viml
Hypergit.vim
This git plugin provides many awesome features so that you don't need to type commands anymore..
Stars: ✭ 59 (-3.28%)
Mutual labels:  viml
Grep.vim
Grep search tools integration with Vim
Stars: ✭ 56 (-8.2%)
Mutual labels:  viml

Ruby Conque & Fast-spec Aware RSpec Finder

  • Colorized Ruby, Rake, RSpec, and Cucumber output in vim using ConqueTerm
  • Spec Finder - use Ctrl-s to automatically find the related spec and open in a split, fast_spec aware!
  • Sensible keybindings (feel free to change), all prefixed with 'rc':
  • Switch between running rspec1 and rspec2 with :Rspec1 and :Rspec2 (you need both installed)
nmap <silent> <Leader>rcrr :call RunRubyCurrentFileConque()<CR>
nmap <silent> <Leader>rcss :call RunRspecCurrentFileConque()<CR>
nmap <silent> <Leader>rcll :call RunRspecCurrentLineConque()<CR>
nmap <silent> <Leader>rccc :call RunCucumberCurrentFileConque()<CR>
nmap <silent> <Leader>rccl :call RunCucumberCurrentLineConque()<CR>
nmap <silent> <Leader>rcRR :call RunRakeConque()<CR>
nmap <silent> <Leader>rcrl :call RunLastConqueCommand()<CR>

nnoremap <silent> <C-s> :call RelatedSpecVOpen()<CR>
nnoremap <silent> ,<C-s> :call RelatedSpecOpen()<CR>

Recommended keybindings

Chords are faster than typing out long strings:

" Cmd-Shift-R for RSpec
nmap <silent> <D-R> :call RunRspecCurrentFileConque()<CR>
" Cmd-Shift-L for RSpec Current Line
nmap <silent> <D-L> :call RunRspecCurrentLineConque()<CR>
" ,Cmd-R for Last conque command
nmap <silent> ,<D-R> :call RunLastConqueCommand()<CR>

Using the Spec Runner

Try some of the keybindings listed above.

Upon running a test your cursor will be in the Conque buffer, you can use these commands:

q   closes/quits the buffer
n   goes to the next Failure message.
p   goes to the previous Failure message.
f   goes to the Finished At section for an overview of the test.

Using the Spec Finder

While inside a ruby file, invoke the shortcut (supplied as Ctrl-s), and the corresponding spec will be open. The assumptions are:

  • Your specs live in spec/ or fast_spec/
  • Your pwd (current dir) is the project root
  • You use the same dir structure in your code and specs so that code living at lib/foo/bar.rb has a spec at spec/lib/foo/bar_spec.rb

For more information, please see doc/spec-finder.txt. There are included functions for opening the spec in the current window, and in a split, as well as just getting its full path.

Configuration

This plugin tries to detect whether you use 'rspec' (rspec2) or 'spec' (rspec1) and set the default executable correctly. To override in your ~/.vimrc:

let g:ruby_conque_rspec_runner='spec'

It will also do the same for cucumber, trying to determine whether to run 'cucumber' or 'bundle exec cucumber' and set the default correctly. You can override in your ~/.vimrc

let g:ruby_conque_cucumber_runner='cucumber'

Contribute

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].