aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/vim_diff.txt
diff options
context:
space:
mode:
authorSteven Ward <planet36@users.noreply.github.com>2023-06-05 22:05:51 -0500
committerJustin M. Keyes <justinkz@gmail.com>2023-07-06 10:29:50 +0200
commitabd380e28d48dd155b1e29cd2453f13b28bf7e08 (patch)
tree57a0e8450895f61685b4f4fbe5be8f2d9a1429d1 /runtime/doc/vim_diff.txt
parent4e34ca8ae71d7dfac5c93ffe8e4e8d00f915c593 (diff)
downloadrneovim-abd380e28d48dd155b1e29cd2453f13b28bf7e08.tar.gz
rneovim-abd380e28d48dd155b1e29cd2453f13b28bf7e08.tar.bz2
rneovim-abd380e28d48dd155b1e29cd2453f13b28bf7e08.zip
fix(defaults): visual mode star (*,#) is fragile
Problem: Visual mode "*", "#" mappings don't work on text with "/", "\", "?", and newlines. Solution: Get the visual selection and escape it as a search pattern. Add functions vim.get_visual_selection and _search_for_visual_selection. Fix #21676
Diffstat (limited to 'runtime/doc/vim_diff.txt')
-rw-r--r--runtime/doc/vim_diff.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 686905537d..4abecfc321 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -119,10 +119,11 @@ of these in your config by simply removing the mapping, e.g. ":unmap Y".
nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<Bar>normal! <C-L><CR>
inoremap <C-U> <C-G>u<C-U>
inoremap <C-W> <C-G>u<C-W>
- xnoremap * y/\V<C-R>"<CR>
- xnoremap # y?\V<C-R>"<CR>
nnoremap & :&&<CR>
<
+Default mappings composed of Lua code are not listed above. Use ":map" to see
+the |map-listing|.
+
DEFAULT AUTOCOMMANDS
*default-autocmds*
Default autocommands exist in the following groups. Use ":autocmd! {group}" to