-*version9.txt* For Vim version 9.1. Last change: 2025 May 28
+*version9.txt* For Vim version 9.1. Last change: 2025 Jun 16
VIM REFERENCE MANUAL by Bram Moolenaar
- |CTRL-C| always closes the active |popup-window|.
- the configure script will favor using GTK3 over GTK2 when auto-detecting the
gui toolkit
+- |gv| works in operator pending mode and does not abort
*added-9.2*
Added ~
exe "norm! G0\<c-v>4k4ly"
exe "norm! gvood"
call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'fgh', 'fgh', 'fgh', 'fgh', 'fgh'], getline(1,'$'))
- " gv cannot be used in operator pending mode
- call assert_beeps('normal! cgv')
+ " gv works in operator pending mode
+ call assert_nobeep('normal! cgvxyza')
+ call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'xyza', 'xyza', 'xyza', 'xyza', 'xyza'], getline(1,'$'))
+ exe "norm! ^\<c-v>Gydgv..cgvbc"
+ call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'bc', 'bc', 'bc', 'bc', 'bc'], getline(1,'$'))
+ exe "norm! v^GragggUgv"
+ call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'bA', 'AA', 'AA', 'AA', 'Ac'], getline(1,'$'))
+
" gv should beep without a previously selected visual area
new
call assert_beeps('normal! gv')