The problem I'm facing is creating mappings (for things like wrapping
the selected text with some stuff) which work both on "plain" visually
selected text and linewise visually selected text.  The tricky part is
the trailing new line character in the visual-line case.

Can this be directly handled with a single mapping?  So far I haven't
been able to find a solution other than making separate mappings for the
two cases.

What's the best way to solve this?  Should I use a function which acts
differently depending on the type of the visual mode being used (if
that is even possible)?  If this is the case, a quick example would be
very much welcome.

Thanks!

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

Reply via email to