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
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
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
Recently gvim has had the annoying habit of inserting messages in the
text of the document being edited, such as
:confirm wqa
Sometimes they are longer.
Here is my user .gvimrc:
version 7.0
if cp | set nocp | endif
let s:cpo_save=cpo
let cobol_legacy_code = 1
set cpovim
set syntax=auto
imap
On Tuesday 17 April 2007 11:45, Tim Chase wrote:
Recently gvim has had the annoying habit of inserting messages in
the text of the document being edited, such as
:confirm wqa
Sometimes they are longer.
I don't see anything glaringly obvious in your supplied vimrc
files that would
On Tuesday 17 April 2007 12:25, Tim Chase wrote:
-does this happen in one particular type of file but not in
others (such as in *.tex or *.xyz but not in others)
Most of the files I edit are *.tex files so that is not much of a
distinguishing mark.
Ah well...perhaps a tex-filetype
I am writing a package that requires an MSWin user to download and
install TeX, Vim and my software bundle. That bundle will contain
among other things a special _vimrc or _gvimrc file with some F key
designations. The problem is I don't know where to put the _vimrc on
the user's system via a
I want to create a special application for MSWin machines that
works somewhat as follows:
When clicked a .bat file calls evim with a script or whatever
that adds certain F key
functions, e.g., F3 activates an external program. The
equivalent map command would be
imap F3 Ctrl-O:!pdftex