>> vnoremap gt <esc>`>:exec 'norm '.visualmode().'`<lt>'<cr>
>> vnoremap gb <esc>`<lt>:exec 'norm '.visualmode().'`>'<cr>
> 
> Why do you use `<lt> instead of just `< ?  Just a matter of
> preference?

Depending on what follows the

        `<

vim may try to interpret it as a character-notation.  I prefer
not to have to think about it, so just like with HTML entities
when I write HTML, it's now hard-wired that, when writing
mappings, I use <lt> (and I get stung enough with "|" vs. "<bar>"
 that I tend to err on the side of using the <> notation when I
don't have to, just so I don't have to burn brain-cells thinking
about it case-by-case.

-tim







Reply via email to