home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.0.230
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.0.230
- Problem: The ":" used as a motion after an operator is exclusive, but
- sometimes it should be inclusive.
- Solution: Make the "v" in between an operator and motion toggle
- inclusive/exclusive. (Servatius Brandt)
- Files: runtime/doc/motion.txt, src/normal.c
-
-
- *** ../vim60.229/runtime/doc/motion.txt Tue Sep 25 21:40:36 2001
- --- runtime/doc/motion.txt Mon Feb 18 09:55:59 2002
- ***************
- *** 1,4 ****
- ! *motion.txt* For Vim version 6.0. Last change: 2001 Sep 05
-
-
- VIM REFERENCE MANUAL by Bram Moolenaar
- --- 1,4 ----
- ! *motion.txt* For Vim version 6.0. Last change: 2002 Feb 18
-
-
- VIM REFERENCE MANUAL by Bram Moolenaar
- ***************
- *** 101,108 ****
- strokes and has limited redo functionality. See the chapter on Visual mode
- |Visual-mode|.
-
-
- ! Forcing a motion to be linewise, characterwise or blockwise
-
- When a motion is not of the type you would like to use, you can force another
- type by using "v", "V" or CTRL-V just after the operator.
- --- 101,111 ----
- strokes and has limited redo functionality. See the chapter on Visual mode
- |Visual-mode|.
-
- + You can use a ":" command for a motion. For example "d:call FindEnd()".
- + But this can't be redone with ".".
-
- !
- ! FORCING A MOTION TO BE LINEWISE, CHARACTERWISE OR BLOCKWISE
-
- When a motion is not of the type you would like to use, you can force another
- type by using "v", "V" or CTRL-V just after the operator.
- ***************
- *** 122,127 ****
- --- 125,133 ----
- the operator to work characterwise, also when the motion is
- linewise. If the motion was linewise, it will become
- |exclusive|.
- + If the motion already was characterwise, toggle
- + inclusive/exclusive. This can be used to make an exclusive
- + motion inclusive and an inclusive motion exclusive.
-
- *o_V*
- V When used after an operator, before the motion command: Force
- *** ../vim60.229/src/normal.c Sun Feb 17 23:22:34 2002
- --- src/normal.c Mon Feb 18 09:53:21 2002
- ***************
- *** 1275,1286 ****
- * Use "exclusive" to be consistent. Makes "dvj" work nice. */
- if (oap->motion_type == MLINE)
- oap->inclusive = FALSE;
- oap->motion_type = MCHAR;
- }
- else if (oap->motion_force == Ctrl_V)
- {
- ! /* Change linewise or characterwise motion into Visual block mode.
- ! * */
- VIsual_active = TRUE;
- VIsual = oap->start;
- VIsual_mode = Ctrl_V;
- --- 1275,1288 ----
- * Use "exclusive" to be consistent. Makes "dvj" work nice. */
- if (oap->motion_type == MLINE)
- oap->inclusive = FALSE;
- + /* If the motion already was characterwise, toggle "inclusive" */
- + else if (oap->motion_type == MCHAR)
- + oap->inclusive = !oap->inclusive;
- oap->motion_type = MCHAR;
- }
- else if (oap->motion_force == Ctrl_V)
- {
- ! /* Change line- or characterwise motion into Visual block mode. */
- VIsual_active = TRUE;
- VIsual = oap->start;
- VIsual_mode = Ctrl_V;
- *** ../vim60.229/src/version.c Mon Feb 18 10:26:40 2002
- --- src/version.c Mon Feb 18 10:41:43 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 230,
- /**/
-
- --
- People who want to share their religious views with you
- almost never want you to share yours with them.
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-