home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.230 < prev    next >
Encoding:
Internet Message Format  |  2002-02-17  |  3.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.230
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.230
  11. Problem:    The ":" used as a motion after an operator is exclusive, but
  12.         sometimes it should be inclusive.
  13. Solution:   Make the "v" in between an operator and motion toggle
  14.         inclusive/exclusive. (Servatius Brandt)
  15. Files:        runtime/doc/motion.txt, src/normal.c
  16.  
  17.  
  18. *** ../vim60.229/runtime/doc/motion.txt    Tue Sep 25 21:40:36 2001
  19. --- runtime/doc/motion.txt    Mon Feb 18 09:55:59 2002
  20. ***************
  21. *** 1,4 ****
  22. ! *motion.txt*    For Vim version 6.0.  Last change: 2001 Sep 05
  23.   
  24.   
  25.             VIM REFERENCE MANUAL    by Bram Moolenaar
  26. --- 1,4 ----
  27. ! *motion.txt*    For Vim version 6.0.  Last change: 2002 Feb 18
  28.   
  29.   
  30.             VIM REFERENCE MANUAL    by Bram Moolenaar
  31. ***************
  32. *** 101,108 ****
  33.   strokes and has limited redo functionality.  See the chapter on Visual mode
  34.   |Visual-mode|.
  35.   
  36.   
  37. ! Forcing a motion to be linewise, characterwise or blockwise
  38.   
  39.   When a motion is not of the type you would like to use, you can force another
  40.   type by using "v", "V" or CTRL-V just after the operator.
  41. --- 101,111 ----
  42.   strokes and has limited redo functionality.  See the chapter on Visual mode
  43.   |Visual-mode|.
  44.   
  45. + You can use a ":" command for a motion.  For example "d:call FindEnd()".
  46. + But this can't be redone with ".".
  47.   
  48. ! FORCING A MOTION TO BE LINEWISE, CHARACTERWISE OR BLOCKWISE
  49.   
  50.   When a motion is not of the type you would like to use, you can force another
  51.   type by using "v", "V" or CTRL-V just after the operator.
  52. ***************
  53. *** 122,127 ****
  54. --- 125,133 ----
  55.           the operator to work characterwise, also when the motion is
  56.           linewise.  If the motion was linewise, it will become
  57.           |exclusive|.
  58. +         If the motion already was characterwise, toggle
  59. +         inclusive/exclusive.  This can be used to make an exclusive
  60. +         motion inclusive and an inclusive motion exclusive.
  61.   
  62.                               *o_V*
  63.   V        When used after an operator, before the motion command: Force
  64. *** ../vim60.229/src/normal.c    Sun Feb 17 23:22:34 2002
  65. --- src/normal.c    Mon Feb 18 09:53:21 2002
  66. ***************
  67. *** 1275,1286 ****
  68.            * Use "exclusive" to be consistent.  Makes "dvj" work nice. */
  69.           if (oap->motion_type == MLINE)
  70.           oap->inclusive = FALSE;
  71.           oap->motion_type = MCHAR;
  72.       }
  73.       else if (oap->motion_force == Ctrl_V)
  74.       {
  75. !         /* Change linewise or characterwise motion into Visual block mode.
  76. !          * */
  77.           VIsual_active = TRUE;
  78.           VIsual = oap->start;
  79.           VIsual_mode = Ctrl_V;
  80. --- 1275,1288 ----
  81.            * Use "exclusive" to be consistent.  Makes "dvj" work nice. */
  82.           if (oap->motion_type == MLINE)
  83.           oap->inclusive = FALSE;
  84. +         /* If the motion already was characterwise, toggle "inclusive" */
  85. +         else if (oap->motion_type == MCHAR)
  86. +         oap->inclusive = !oap->inclusive;
  87.           oap->motion_type = MCHAR;
  88.       }
  89.       else if (oap->motion_force == Ctrl_V)
  90.       {
  91. !         /* Change line- or characterwise motion into Visual block mode. */
  92.           VIsual_active = TRUE;
  93.           VIsual = oap->start;
  94.           VIsual_mode = Ctrl_V;
  95. *** ../vim60.229/src/version.c    Mon Feb 18 10:26:40 2002
  96. --- src/version.c    Mon Feb 18 10:41:43 2002
  97. ***************
  98. *** 608,609 ****
  99. --- 608,611 ----
  100.   {   /* Add new patch number below this line */
  101. + /**/
  102. +     230,
  103.   /**/
  104.  
  105. -- 
  106. People who want to share their religious views with you 
  107. almost never want you to share yours with them.
  108.  
  109.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  110. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  111. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  112.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  113.