How can I find help for ye/ye ?

:help ye
or
:help yE

gives me help for the year-2000 compliance which is not directly what I wanted ...


That's kinda funny that it drops you in y2k information.

The trick to searching for them (and for that matter, grokking vi/vim) is to understand that what you're asking about ("ye" or "yE") is a command ("y"ank) followed by a motion ("e" or "E"). Thus, you learn about yanking at

        :help y

and you learn about the e/E motions at

        :help e
        :help E

Much of vi/vim's editing power comes from learning N commands (y/d/c) and M of motions ("/", h/j/k/l, t/T/f/F, various text objects, etc) and suddenly you have a N*M ways to edit, rather than N+M as one might have in other editors. You learn an additional command, and usually all the motions that make sense with it already work as you'd expect. You learn another motion (perhaps you're not familiar with the list given above? check 'em out in the help and you can increase your editing power) and you can suddenly move much faster and do things in a single pass/command+motion.

Add to that the power of the "count", so you can do things like

        y3e

which will yank from the current cursor position to the 3rd word "e"nd.

        :help operator
        :help motion.txt

-tim



Reply via email to