Re: [SLUG] Record keys in editor

From: Robin - Bartow FL (suncoastlug.mailbox@gibp.com)
Date: Fri Sep 07 2007 - 14:16:13 EDT


----- Original Message -----
From: steve szmidt steve@szmidt.org
To: slug@nks.net
Sent: 9/7/07 12:13 PM
Subject: Re: [SLUG] Record keys in editor

> On Friday 07 September 2007 11:58, Robin - Bartow FL wrote:
> > ----- Original Message -----
> > From: steve szmidt steve@szmidt.org
> > To: slug@nks.net
> > Sent: 9/7/07 11:23 AM
> > Subject: [SLUG] Record keys in editor
> >
> > > Hi,
> > >
> > > In the long gone past I had an editor which would allow me to record
> > > keystrokes and replay them by pressing a simple combination like Ctrl 1.
> > >
> > > Running into another need for that functionality I've been through a
> > > number of editors and development tools but not found that functionality,
> > > anyone know of one?
> > >
> > > Office writer has it but you have to go through several mouse steps to
> > > replay it which makes it too slow.
> > >
> > > Vi has buffer replay but it too seem to require too much typing.
> > >
> > > --
> > >
> > > Steve Szmidt
> >
> > Not my forte', but I would look beyond Vi to
> >
> > vim-enhanced
> > vim-X11
> >
> > for greater functionality and an already familiar path of study.
> >
> > /robin
>
> I guess I should have said vim, since I'm on Linux.
>
> Using
> :map (key_to_use) string_of_keys_to_run
> does run macros simply. The problem I have in vim is that {ctrl-v}{esc} does
> not break out of insert mode as it does under vi.
>
> More google searching it looks like...
>
> --
>
> Steve Szmidt
>
> "They that would give up essential liberty for temporary safety
> deserve neither liberty nor safety."
> Benjamin Franklin
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>
>

Since VIM is not my forte',
I "hesitate" to offer this...

======snip ==== http://vimdoc.sourceforge.net/vimfaq.html========
Vim needs a timeout to tell the difference between a simple escape and,
say, a cursor key sequence. When you press a key in normal mode (and even
in insert mode) and that key is the beginning of a mapping, Vim waits a
certain amount of time to see if the rest of the mapping sequence follows.
If the mapping sequence is completed before a given timeout period, the
mapping for that sequence of keys is applied. If you interrupt the mapping,
the normal actions associated with the keys are executed.

For example, if you have a mapping defined as ":imap vvv Vim is great!!"
and you type "vvv" quickly, the "Vim is great!!" will be inserted into your
text. But if you type "vv v" then that is what will put into your text.
This is also true if you type "vvv" too slowly where "too slowly" is longer
than the value for the timeout option. Setting the timeout option to a
larger value can help alleviate problems that appear when using function
keys over a slow line.
====================

/robin

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:05:21 EDT