Luis A. Florit schrieb:
Pals,

    How I avoid certain commands and/or substitutions NOT to be saved
into the history list? For example, I have a sequence of VIM commands
that executes on every email quote to properly format it, and I don't
want these to appear in the registries and history.

    Thanks!

        L.

Think I completely misunderstood you (because of the subject), in case
please forget my previous post.

Commands:
A  :SomeCommand  will not be added to the history, if you map it to a
normal mode key (including the <cr>), for example:
        :map <f2> :Command1<cr>:Command2<bar>Command3<cr>

Registers:
You could write data into variables to not touch registers.
You will need some knowledge about vim script.
        :h eval

Search history:
The search history is always overwritten, although you can backup and
restore the last search pattern:
        :let sav_search = @/
        /some search/
        :let @/ = sav_search
        :unlet sav_search       " no need within :function
...

Do you use filetype plugins?
...

Wonder if this has more to do with what you had in mind.

Andy

--
EOF



                
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Reply via email to