Improve comment for visual-mode P
dblume

dblume commited on 2024-09-10 08:38:42
Showing 1 changed files, with 3 additions and 1 deletions.


And add guard to remap only on old Vims
... ...
@@ -248,8 +248,10 @@ vnoremap <leader>s :sort<cr>
248 248
 vnoremap < <gv
249 249
 vnoremap > >gv
250 250
 
251
-" Matches neovim (nvim), where P does not yank to unnamed register
251
+" Match Vim 8.2 and greater, where P does not yank to unnamed register
252
+if v:version < 802
252 253
     vnoremap P "_dP
254
+endif
253 255
 
254 256
 " If too many file system events are getting triggered.
255 257
 set nobackup       " ~ files
256 258