"Halim, Salman" <[EMAIL PROTECTED]> wrote in 
news:[EMAIL PROTECTED]:

>> 
>>   > 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 have the following in my .vimrc

" preload a register, just do @y to execute vim command on current line
let @y='"[EMAIL PROTECTED]'                         " execute command in text
let @m=":'a,'bs#"                       " substitute between 2 markers
let @n="r1jr2jr3jr4jr5jr6jr7jr8jr9jr0"  " number a column 1-10
let @d="rSjrMjrTjrWjrHjrFjrSjrS"        " Days of Week Columniser
let @p=":redir @*"                      " start redirect to paste buffer
let @e=":redir END"                     " end redirect
let @s=":%!sort -u"                     " sortfile unique
let @t="gUlW"                           " Titlize words in a sentence
let @z=":bufdo %s//&/gic

HTH


-- 
zzapper
http://www.rayninfo.co.uk/vimtips.html

Reply via email to