On Nov 21, 7:41 pm, Tony Mechelynck <[email protected]> wrote: > > The reason why normal-mode commands must be prefixed by "normal" in > scripts is that the :normal command executes its argument as a > normal-mode command (or set of commands). If you want to execute :normal > as part of a string of bar-separated concatenated ex-commands (and other > than at the end) you must wrap it in an :execute because :normal would > see the bar as part of its arguments: > > :cmd1 | cmd2 | exe "normal w3li \e" | cmd3 | etc... > Thank you for forewarning me of this, for sure I would have fallen right into it, given my preference for cramming everything on a single line if I can. So now I also appreciate your recommendations to put one command per line.
Graham -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
