On Sun, Apr 22, 2007 at 11:31:01PM -0400, John R. Culleton wrote:
> I want to activate a whole string of substitute commands by a single F 
> key, perhaps 6 or 8. Can I call a script from an F key? How?
> 
>  Alternatively, can I string them together in a line or multiple lines 
> in gvimrc? How?
> 
> I asked this question earlier but it never appeared on the list. 
> -- 
> John Culleton
> Able Indexing and Typesetting
> Precision typesetting (tm) at reasonable cost.
> Satisfaction guaranteed. 
> http://wexfordpress.com
> 

The easiest way would be to map a F-key to a function. You can do this
in your .vimrc.

something like this:

map <F2> :call MyKillerRegExp()<CR>

func MyKillerRegExp()
    execute "%s/emacs/vim/g"
endfunc

regards
iveqy

Reply via email to