The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Can we trigger some .vimrc editing frenzy? Chapter (n): ruby-run-and-vsplit.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
Can we trigger some .vimrc editing frenzy? Chapter (n): ruby-run-and-vsplit. Posted: Apr 28, 2006 8:28 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: Can we trigger some .vimrc editing frenzy? Chapter (n): ruby-run-and-vsplit.
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

A quick & dirty run-and-show-output-in-vsplit-window script for vim. Definitely not as refined as the xmp decorator, and it cannot expand test assertions automagically, but I'll give it a try in my .vimrc.

Some minor details to make it more palatable:

  • works in insert, normal, visual mode, and DWIM
  • doesn't overwrite the original file, doesn't use fixed tempfiles
  • preserves the cursor position, and you're placed back in the source file
  • most importantly: killing the new window is as easy as creating it in the first place (F7 to open, S-F7 to close), and it won't break the minibufexpl (which you should be using)

(hmm some aggregators can't show the following animation) vim-ruby-eval.gif

vimscript


Read more...

Read: Can we trigger some .vimrc editing frenzy? Chapter (n): ruby-run-and-vsplit.

Topic: Austin Rails Jobs Roundup for April 20, 2006 Previous Topic   Next Topic Topic: BDD vs. TDD

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use