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: 12-Mar-2002 5:50

Hi, Louis, Dr. Louis A. Turk wrote:
> Sorry to ask a non-rebol question, but I'm trying to learn > vim to edit rebol scripts. I'm in a situation in which I > have to cut and paste data from another program into a > rebol script. It seems that vim can't do this. >
It can.
> Instead of inserting the text at the cursor position, it > inserts it a the top of the file. >
Which version of vim are you using? On what platform? The reason I'm asking is that vim 6.0 and vim 5.x are slightly different (one keystroke), and gvim lets you also use a drop-down menu. In vim 5.x you use "*p to insert after the current cursor position. In vim 6.0 "+p (IIRC, I'm sitting in front of a box that has 5.5 on it). If you run gvim instead (supported on X for Unix/Linux and on w95/nt/2k... ) there is a past option in the drop-down "Edit" window that does the same thing. Another advantage of using gvim is that the dropdowns all show the equivalent key commands, so it's a painless way to learn them. Of course, if you use "*P (or "+P in vim 6), you'll paste AFTER the current cursor position. -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" ;