On 7/17/06, Tim Chase <[EMAIL PROTECTED]> wrote:
> :cabbrev e E > > Now ":e" will change itself to ":E" when not followed by a > letter, but ":edit" will get you the "old" behaviour of the :e > command.However, beware the funky behaviors that can ensue from this: Trying to type something like :echo "the letter e is nice" will expand to :echo "the letter E is nice" There are other oddball places
That's right. Without the (getcmdtype()==':' && getcmdpos()==1) check, 'e' gets replaced in the /e / search patterns, which is not good. The check (getcmdtype()==':') prevents this from happening. Yakov
