The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
simplefold: better vim folding (Ruby, Objective Caml, Perl, PHP, Java)

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.
simplefold: better vim folding (Ruby, Objective Caml, Perl, PHP, Java) Posted: Apr 17, 2007 1:04 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: simplefold: better vim folding (Ruby, Objective Caml, Perl, PHP, Java)
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

simplefold is a small vim script that improves (for some definition of "improve", see the description + screenshots below) on other folding methods (syntax, marker, indent, expr). It was originally written for Ruby, but now also supports Objective Caml, PHP, Perl and Java. It features:

  • optimized vertical space usage
  • sensible foldtext
  • top-level folds: one per interesting definition. No need to open a class fold to see which methods it contains. Get a quick overview of the classes/methods/functions (whatever applies in the current filetype) with zM.
  • optional nested folds for if/while and so on
  • easy to adapt to other filetypes; just by setting 2-3 regexps

simplefold 0.5.0 introduces Objective Caml, Perl and PHP support, a few bugfixes and a new way to define fold boundaries.

Getting it

The last tarball is simplefold-0.5.0.tar.gz.

You can also access the darcs repository (you can explore it from your browser too) at http://eigenclass.org/repos/simplefold .

simplefold vs. fold_syntax

Both images correspond to the same files; I've timed them carefully to show equivalent views (top-level, class-level, method-level) at a time (you might have to reload the page to make sure they play synchronously). The first one is fdm=syntax, the second is simplefold's syntax.gif simplefold1.gif


Read more...

Read: simplefold: better vim folding (Ruby, Objective Caml, Perl, PHP, Java)

Topic: Tomayko on ActiveRecord Previous Topic   Next Topic Topic: Scaling to multiple databases with Rails

Sponsored Links



Google
  Web Artima.com   

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