home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / editors / 3136 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!sdd.hp.com!hp-cv!hp-pcd!news1.boi.hp.com!alien
  3. From: alien@boi.hp.com (Tom von Alten)
  4. Subject: Re: Mouse cognizant vi?
  5. Sender: news@boi.hp.com (News Server Project)
  6. Message-ID: <C051I8.M81@boi.hp.com>
  7. Date: Thu, 31 Dec 1992 19:15:44 GMT
  8. References: <1992Dec22.141946.26990@ennews.eas.asu.edu>
  9. Organization: Hewlett-Packard / Boise, Idaho
  10. X-Newsreader: TIN [version 1.1.7 PL6]
  11. Lines: 21
  12.  
  13. Eric R. Johnson (ejohnson@enuxha.eas.asu.edu) wrote:
  14. : Is there a version of vi that will move the cursor to a point
  15. : clicked on with a mouse?  Most times it's _great_ to not leave the
  16. : home row, but if I resize a window, and want to jump to a new point,
  17. : it would be nice to just be able to _go_ there with one click, and 
  18. : not a bunch of keystrokes.
  19.  
  20. If you have the "copyline" feature or equivalent (mine is with HP's
  21. Xwindows and hpterm) you can simulate this behavior.  This feature copies
  22. from the mouse position to the end of line, including the <lf> and pastes
  23. this buffer.  In command mode,
  24.  
  25.     1. type "/" (for search)
  26.     2. position the mouse and press "copyline" (on my system
  27.        it's mapped to the right mouse button)
  28.  
  29. A windows-based cut/paste functionality could be used also, but likely adds
  30. up to more than 1 key and 1 boink.
  31. _____________
  32. Tom von Alten           email: alien@boi.hp.com
  33.                         Hewlett-Packard Disk Memory Division
  34.