Tuesday, 21 July 2009

 

VIM : Register Tricks

When you use the useful ct" (change till " character) (:help t - motion command) it can be annoying that you cannot . repeat it if the limiting character is not a "

Well not to worry the last text you inserted is still in the . register and can thus be retrieved with a <C-R>.

ie ct'<C-R>.

Don't forget it's brother the small delete register -

Or the other special registers which you can display with the following command

:reg "/-.:%*

Nor forget how to dump your numeric registers

"1p....... (normal mode)

Labels: , , ,


Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]