After visual map executes, it doesn't stay in visual mode
grr opened this issue · 5 comments
I'm using the default maps as documented. After selecting text in visual mode and using the map, the mode is changed to normal mode. It should stay in visual mode.
Also, can you allow an easier way to silence the plugin messages? Currently the only way to do so is using an obscure syntax:
nnoremap <silent> gx :silent execute "normal \<Plug>(openbrowser-open)"<CR>
vnoremap <silent> gx :<C-u>silent execute "normal \<Plug>(openbrowser-open)"<CR>
If not, can you at least document those mappings. Thanks.
can you allow an easier way to silence the plugin messages?
Try
let g:openbrowser_format_message = ''
See this:
open-browser.vim/doc/openbrowser.txt
Lines 303 to 304 in 2780c68
It should stay in visual mode.
Hmm, I can't imagine such use case why it should stay in visual mode.
I think it's enough to use gv
mapping, isn't it?
vmap gx <Plug>(openbrowser-open)gv
let g:openbrowser_format_message = ''
That only silences the Opening url message. But if you get the error message "URL of file path is not found under cursor!", even after successfully opening a url afterwards the error stays. I want to silence those errors also.
Currently there are no ways to silence error messages.
Could you checkout #95 branch and let g:openbrowser_message_verbosity = 0
?
That new flag is perfect. Tested and no problems.