To add to Suresh's file-type plugin suggestion, you might consider
replacing registers with mappings in the files -- you'll have more
freedom as to the number of such keystrokes you can maintain...

(:help map)

Salman. 

> -----Original Message-----
> From: Suresh Govindachar [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 27, 2007 11:42 AM
> To: 'Trebor Sreyb'; [email protected]
> Subject: RE: Best way to maintain a 'library' of recorded keystrokes?
> 
> 
> Trebor Sreyb aka Bob asked  
> 
>   > What is the best way to maintain a set of previously recorded
>   > keystroke sequences? I constantly make use of the record feature
>   > within one vi session. But some of the sequences I'd like to
>   > preserve. I realize they get saved in a named register, but that
>   > register will get overwritten over time, and I have need to
>   > recall previous instances of the register.
>   >
>   > I typically use register 'q'. I suppose I could just use 'q' for
>   > my temporary recordings, and reserve other letters for my
>   > 'library'.
>   >
>   > Just wondering if there's another approach to this.
> 
>   Try considering why you need the recordings, especially what type
>   of files you use them with.  You might then find that the
>   assignments can be saved in the file-type plugin file (maybe in
>   modelines too). 
> 
>   --Suresh
> 
> 

Reply via email to