for_lists wrote:
I guess I just don't get it.
o<esc> -> 2 key presses
:put_<enter> -> 6 key presses (8 if you count shift)

Why is ':put_' or other variants easier?
-Brian

":put" is an ex-command. I spoke of using o<Esc> at the keyboard, or ":put =''" in a script. To use o<esc> in a *script*, you must use

        norm o^[

(where ^[ is entered by hitting Ctrl-V followed by Esc) or

        exe "norm o\e"

which, in both cases, is longer than

        put _

(Well, actually :norm o would be enough, but only because ":normal" adds an implicit Esc to non-terminated commands; and :put is still shorter.) See also (somewhere else in this thread) how I redefined the ":Iline" user-command to make it more powerful by means of ":put".


Best regards,
Tony.
--
All progress is based upon a universal innate desire on the part of
every organism to live beyond its income.
                -- Samuel Butler

Reply via email to