home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / help / 5551 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.6 KB

  1. Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!src.bae.co.UK!moore
  2. From: moore@src.bae.co.UK (Chris Moore)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: hand injuries
  5. Date: 28 Jan 1993 07:51:19 -0500
  6. Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
  7. Lines: 74
  8. Sender: daemon@cis.ohio-state.edu
  9. Distribution: world
  10. Message-ID: <9301281230.AA07618@sun64.src.bae.co.uk>
  11. References: <1993Jan26.070825.22091@EE.Stanford.EDU>
  12.  
  13.  
  14. sahul@loading-zone.stanford.edu (Zakir H. Sahul) said:
  15. > Original-Sender: help-gnu-emacs-request@prep.ai.mit.edu
  16.  
  17. > In article <1993Jan26.003206.29170@smos.com>, david@smos.com (David Tornheim) writes:
  18. > |> I have used EMACS for about 8 years now and have sworn by it, since
  19. > |> I can use it on almost every machine.  Unfortunately, I've noticed that
  20. > |> my hands hurt quite a bit at the end of the day, _especially_ when
  21. > |> I edit files with EMACS.  The frequent use of the CNTL key combined
  22. > |> with another key is the motion that is most painful. (e.g. I use C-b and
  23. > |> C-f a lot to move around within a line, since commands like M-F and
  24. > |> M-B actually take longer).  Because of this, I'm seriously considering
  25. > |> switching over to the evil VI editor to save my hands from permanent
  26. > |> damage (no kidding!).  Is anyone else in the same boat? Does anyone
  27. > |> have other suggestions?
  28. > |> 
  29.  
  30.  
  31. > My left pinky also hurts from hitting the CNTL key a lot.  I wish there was
  32. > something....
  33.  
  34. > Is there elisp code that will enable emacs to:
  35.  
  36. > 1) Act like regular emacs when in "insert" mode.
  37.  
  38. > 2) When in "browse" mode, then one does't need to hit the CNTL key for C-key
  39. > commands.  For example, if in "insert" mode, C-n = next line, C-e = end of
  40. > line, and C-l = recenter, then in "browse" mode, n = next line, e = end of line
  41. > and l = recenter.  Command that require two keys (C-x C-c etc) will remain the
  42. > same. 
  43.  
  44. > 3) A special key (like C-i) can be defined to toggle between "insert" and 
  45. > "browse" modes.
  46.  
  47. > vip mode does a decent job of doing this.  However, I do not like the "vi"
  48. > definition of cursor movement keys.  I would prefer to customize them.
  49. > Alternatively, is there a vip-mode.el that I can modify?
  50.  
  51. In the standard emacs lisp directory, you'll find vip.el.  You probably
  52. don't want to modify it, since that will affect other people.  I use lines
  53. like this in my .emacs (make sure these lines appear after you have loaded
  54. vip with (load "vip"):
  55.  
  56. (define-key vip-mode-map "s" 'vip-substitute)
  57. (define-key vip-mode-map "\C-b" 'backward-char)
  58. (define-key vip-mode-map "\C-f" 'forward-char)
  59. (define-key vip-mode-map "~" 'vip-othercase)
  60.  
  61. The default cursor movement is defined by these lines, so you can just
  62. change the characters between the quotation marks to change cursor movement
  63. keys.
  64.  
  65. (define-key vip-mode-map "h" 'vip-backward-char)
  66. (define-key vip-mode-map "j" 'vip-next-line)
  67. (define-key vip-mode-map "k" 'vip-previous-line)
  68. (define-key vip-mode-map "l" 'vip-forward-char)
  69.  
  70. Also, there's a package called mvip.el around somewhere (ask archie if
  71. you're on speaking terms with him) which is described thusly in the (old)
  72. copy I use:
  73.  
  74. ;; LCD Archive Entry:
  75. ;; vip-mode|Aamod Sane|sane@cs.uiuc.edu
  76. ;; |Much improved vip mode - minor mode vi emulation
  77. ;; |91-07-24|4.2|~/modes/vip-mode.shar.Z
  78.  
  79. Hope this helps.
  80.  
  81. Chris.
  82. --
  83. moore@src.bae.co.uk   /      Chris Moore      \
  84.                      / Sowerby Research Centre \
  85.                      \  British Aerospace PLC  /
  86. tel: +44 272 363375   \      BRISTOL, UK      /
  87.