-*index.txt* For Vim version 9.1. Last change: 2025 Aug 06
+*index.txt* For Vim version 9.1. Last change: 2025 Oct 31
VIM REFERENCE MANUAL by Bram Moolenaar
|g@| g@{motion} call 'operatorfunc'
|g~| g~{motion} 2 swap case for Nmove text
|g<Down>| g<Down> 1 same as "gj"
-|g<End>| g<End> 1 same as "g$"
+|g<End>| g<End> 1 same as "g$" but go to the rightmost
+ non-blank character instead
|g<Home>| g<Home> 1 same as "g0"
|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
g<MiddleMouse> same as <C-MiddleMouse>
{
do
i = gchar_cursor();
- while (VIM_ISWHITE(i) && oneleft() == OK);
+ while (IS_WHITE_OR_NUL(i) && oneleft() == OK);
curwin->w_valid &= ~VALID_WCOL;
}
}
call assert_equal(20, col('.'))
exe "normal 0g\<kEnd>"
call assert_equal(11, col('.'))
+
+ " Test visual mode at end of line
+ normal 0$bvg$y
+ call assert_equal(80, col("'>"))
+ exe "normal 0$bvg\<End>y"
+ call assert_equal(71, col("'>"))
+ setlocal nowrap virtualedit=all
+ exe "normal 0$\<C-v>llg\<End>y"
+ call assert_equal(71, col("'<"))
+ exe "normal 0$llvg\<End>y"
+ call assert_equal(71, col("'<"))
bw!
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1891,
/**/
1890,
/**/