Re: Multiple commands from Fkey

2007-05-14 Thread John R. Culleton
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

Multiple commands.

2007-04-22 Thread John R. Culleton
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

Multiple commands from Fkey

2007-04-19 Thread John R. Culleton
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

Annoying insertion.

2007-04-17 Thread John R. Culleton
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

Re: Annoying insertion.

2007-04-17 Thread John R. Culleton
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

Re: Annoying insertion.

2007-04-17 Thread John R. Culleton
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

Placement of users _vimrc in a MSWindows system.

2007-04-04 Thread John R. Culleton
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

Reassigning F keys in eVim

2006-06-01 Thread John R. Culleton
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