Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: GVIM Editor

From: joel:neely:fedex at: 13-Mar-2002 7:16

Hi, Louis, (yet again ;-) Dr. Louis A. Turk wrote:
> > :set nowrap > > But sometimes I want the lines wrapped, but I don't want the > wrapped part of the lines skipped when moving the cursor up > or down. Why can't I find that perfect editor? >
I have yet to find an editor that has a fully functional DWIM command (Do What I Meant ;-). Tim's post reminded me that there's one other option to consider in your long-lines cases (at least if they are caused by use of tabs to indent source code): Type the command :set ts=4 to tell vim that you want tabs to be treated as 4 characters wide (instead of the default 8). That often keeps deeper lines from needing to wrap at all. If you *REALLY* want to be kind to yourself (and a REBOL hero ;-) follow that command by :set et (this one's in vim, not vi) which says to expand tabs to the equivalent number of spaces. That way you can use the tab key without fear while composing code, but the result will be to have spaces inserted for the indentation. Again, this will put off line-wrapping a bit longer, but will also maye your resulting file more consistent for printing/emailing/etc. -jn- -- ; sub REBOL {}; sub head ($) {@_[0]} REBOL [] # despam: func [e] [replace replace/all e ":" "." "#" "@"] ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"} print head reverse despam "moc:xedef#yleen:leoj" ;