* John Buttery <[EMAIL PROTECTED]> [020306 07:12]: > On Tue, Mar 05, 2002 at 05:13:27PM -0500, Joel Hammer wrote: > >map z z <--- fast shift email to top of screen. > >First command given after email comes up in vi. > >I wish I could get this to happen automatically. > Well, I'm pretty much a vi newbie myself but someone > showed me a command called "normal" which lets > you specify characters to pass arbitrarily to vi.
yup. commands on the command line have to be "ex" commands; no "normal mode commands" allowed. however, bram added ":normal" as a pseudo ex command and thereby allows the execution of normal mode commands on the command line. everybody confused now? good. here's an example: :au BufNewFile,BufRead /tmp/mutt-* 1;/^$/:normal zt > Oh yeah, and yes vi=vim in this email. :) > 5.8 specifically, and yes I plan to upgrade soon. i think people *are* reading my posts. *grin* Sven -- Sven [EMAIL PROTECTED] http://www.vim.org/ [vim-versions] Latest Vim VERSIONS http://www.vim.org/hist.html "release history" release dates given latest user release: VIM-6.0 [010926] in format "yymmdd". latest developer release: VIM-6.1a.028 [020304]