diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-07-05 19:47:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-07-06 12:18:55 +0200 |
commit | f39ca5df232cb6e70b1932b7444840acf42cf87b (patch) | |
tree | 99140c8bdbbcf5eded0072fc6418ac41579f84dd /runtime/doc/vim_diff.txt | |
parent | abd380e28d48dd155b1e29cd2453f13b28bf7e08 (diff) | |
download | rneovim-f39ca5df232cb6e70b1932b7444840acf42cf87b.tar.gz rneovim-f39ca5df232cb6e70b1932b7444840acf42cf87b.tar.bz2 rneovim-f39ca5df232cb6e70b1932b7444840acf42cf87b.zip |
refactor(defaults): use vim.region for visual star (*,#)
Problem:
The parent commit added a new vim.get_visual_selection() function to
improve visual star. But that is redundant with vim.region(). Any
current limitations of vim.region() should be fixed instead of adding
a new function.
Solution:
Delete vim.get_visual_selection().
Use vim.region() to get the visual selection.
TODO: fails with visual "block" selections.
Diffstat (limited to 'runtime/doc/vim_diff.txt')
-rw-r--r-- | runtime/doc/vim_diff.txt | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 4abecfc321..6ffd45d013 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -114,15 +114,14 @@ DEFAULT MAPPINGS *default-mappings* Nvim creates the following default mappings at |startup|. You can disable any of these in your config by simply removing the mapping, e.g. ":unmap Y". ->vim - nnoremap Y 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> - nnoremap & :&&<CR> -< -Default mappings composed of Lua code are not listed above. Use ":map" to see -the |map-listing|. + +- |Y-default| +- |i_CTRL-U-default| +- |i_CTRL-W-default| +- |CTRL-L-default| +- |&-default| +- |v_#-default| +- |v_star-default| DEFAULT AUTOCOMMANDS *default-autocmds* |