Gary wrote in part:
nmap silent F2 :call DoSub()CR
function DoSub()
%s/^/``/e
%s/ / ``/ge
%s/$/''/e
%s/ /'' /ge
endfunction
For my other F keys I have used noremap instead of nmap, thus:
inoremap F3 C-O:!pdftex book.texCr
nnoremap F3 :!pdftex book.texCr
On 2007-05-14, John R. Culleton [EMAIL PROTECTED] wrote:
Gary wrote in part:
nmap silent F2 :call DoSub()CR
function DoSub()
%s/^/``/e
%s/ / ``/ge
%s/$/''/e
%s/ /'' /ge
endfunction
For my other F keys I have used noremap instead of nmap,
I want a single F key assignment via user's gvimrc to activate several
commands in order, e.g.:
%s/^/``/
%s/ / ``/g
%s/$/''/
%s/ /'' /g
(The left hand part contains an inch sign and the right hand part
contains either two back ticks or two apostrophes.) I may add more
such commands to the same
On 2007-04-19, John R. Culleton [EMAIL PROTECTED] wrote:
I want a single F key assignment via user's gvimrc to activate several
commands in order, e.g.:
%s/^/``/
%s/ / ``/g
%s/$/''/
%s/ /'' /g
(The left hand part contains an inch sign and the right hand part
contains either two back