From: Andrew Walrond Date: 2005-04-25T18:35:33+09:00 Subject: Re: Folding editor for ruby code browsing --Boundary-00=_7mLbCZ9NJX4gsuv Content-Type: Multipart/Mixed; boundary="Boundary-00=_7mLbCZ9NJX4gsuv" --Boundary-00=_7mLbCZ9NJX4gsuv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 24 April 2005 22:54, Thomas Kirchner wrote: > > Vim is excellent at folding (along with pretty much everything else). > You can fold by any number of methods, including indent, marker, > expression, syntax, diff-style, or even manual... Give it a shot if > you're not too die-hard with emacs. > Tom Vim fell at the first hurdle; syntax colouring/highlighting :( It seems unhappy with IO#<< unless I put some spaces around it; Try the attached file. I have downloaded the latest syntax/ruby.vim file, but no change. Haven't tried folding yet Andrew --Boundary-00=_7mLbCZ9NJX4gsuv Content-Type: application/x-ruby; name="test.rb" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.rb" def bash(cmd,username=nil,stdin=nil) pid = Process.fork { #The process cannot regain superuser status after User.real if username then User.real(username); else User.realise(); end puts("\n"+'-'*cmd.size+"\n",cmd,'.'*cmd.size+"\n") begin if stdin IO.popen(cmd,"w+") { |f| f<