[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: avoiding warning message and delay in "macro"
From: |
Michael Schroeder |
Subject: |
Re: avoiding warning message and delay in "macro" |
Date: |
Mon, 21 Aug 2006 19:18:08 +0200 |
User-agent: |
Mutt/1.4.2.1i |
On Fri, Jul 14, 2006 at 03:52:16PM +0200, Eric Smith wrote:
> Hi
>
> I am using tabs in vim7 and have several files permanently opened
> on screen window called "data". I have bindings as per:
> bind r eval 'select data' 'stuff :tabn1^M'
> bind t eval 'select data' 'stuff :tabn2^M'
>
> This takes me from wherever I am in screen to the data window and
> then issues the :ex command do go to tab number 1 if I pressed
> "r" and tab 2 if I pressed "t".
>
> This works perfectly if I am not in window "data".
> But I want to use the same keystrokes even if I am in the data
> window. But then I get the error message "This IS window ..."
> and an irritating 1 sec pause.
If you don't mind the extra refresh you can use:
bind r eval 'select -' 'select data' 'stuff :tabn1^M'
bind t eval 'select -' 'select data' 'stuff :tabn2^M'
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}