-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In visual mode, which key seems to make cursor jump before command actually executed #241
Comments
This issue not happens on windows. nnoremap nmap aa MarkSet let g:which_key_map['a']={ |
After some investigation, the issue seems related to: autoload/which_key.vim, line 403, |
I confirm the same issue, it's impossible to use a selected range. I did not use VWK on the selection before but I would like to sort a spaced list inside a range on the same line.
vnoremap <F2> d:execute 'normal a' . join(uniq(sort(split(getreg('"')))), ' ')<CR>
let g:which_key_map_visual.n.s = 'sort+uniq(spacedWords)'
vnoremap <Leader>ns d:execute 'normal a' . join(uniq(sort(split(getreg('"')))), ' ')<CR> |
Maybe you can just comment out the line " let Cmd = line('v').','.line('.').Cmd " |
Warning: if you don't fill this issue template and provide the reproducible steps the issue could be closed directly.
Environment (please complete the following information):
OS: ubuntu 22.04
Vim version: 8.2
vim-which-key version: ea87707
Have you reproduced with a minimal vimrc: No
Describe the bug
When in visual mode, after which-key hint pops, and just before the actual command executed. You may notice that the cursor jumps at the beginning of line.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: