visualmode() and :vmap <expr> don't work together well:
I wanted a map for the "v" key in Visual mode to toggle between
characterwise and blockwise Visual mode. I thought this would work:
:vno <expr> v visualmode()==#"v" ? "<c-v>" : "v"
but it didn't (and doesn't), because visualmode() returns the type of
the _previously_ used Visual mode.
visualmode() has no option for returning the current visual mode so
I think this is a bug.
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---