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.
One idea is:
- backup (i.e. write) the viminfo file (:help :wv)
- do some secret commands
- read the viminfo file back in (:help :rv), overwriting the history
In theory I thought this would work:
:echo "public command"
:wviminfo!
:echo "secret command one"
:echo "secret command two"
:rviminfo!
But it doesn't (because of my unpatched Vim7?), so I tried:
:set history?
history=1000
:echo "public command"
:wviminfo!
:set history=0
:echo "secret command one"
:echo "secret command two"
:set history=1000
:rviminfo!
My 'viminfo' settings (just info :o):
:set viminfo?
viminfo=!,'30,"50,h,rA:,rB:
I think the only chars you should be aware of are ':' and '/' (not
present here).
HTH Andy
--
EOF
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de