Consider the following mapping :
vmap <expr> Q visualmode()==#"V" ? "<ESC>:echo 'line'<CR>" :
"<ESC>:echo 'not line'<CR>"

I would expect the result to be that hitting Q in visual mode would
echo whether I were in linewise visual mode.
The actual result is that Q tells me whether I had used linewise
visual mode the previous time I used visual mode before this one.
This is altogether consistent with the documentation for visualmode().
However, it doesn't seem very useful.
Surely it would be better for visualmode() while in visual mode to
report the current visual mode rather than the last one?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui