On Fri, 16 Jun 2006, Mathias Michaelis wrote:
Hi Gerald
For instance, with
map <F2> /
hitting "3" + <F2> will have the search do with a count of 3 (taken from
v:count and v:count1). How would we have it so it takes from g:mycount
instead?
What about:
:map <expr> <F2> "" . g:mycount . "/"
Thanks, Mathias :) That works great. It seems that I'm still stuck in
the Vim 6 way of doing things for as long as I'm using Vim 6.3 in
school. Nevertheless, I think I figured out how to do the <expr> map
above the Vim 6 way.
--
Gerald