On Feb 8, 4:17 pm, SamLT <[email protected]> wrote:
> in 'Q' mode, the equivalent(_I_ think) command: > :13,27g/^[A-Z]/s/^/ /\ > .,.+2j!\ > s/\d\+$/.............&/ > > > while in the 'gQ' mode the command: > 84,96g/^[A-Z]/s/^/ /\ > .,.+2j!\ > s/\d\+$/.............&/ > > gives me the following error: > "E488: Trailing characters" > Are you trying to string together multiple commands on multiple lines using a '\' at the end of the line? If so, that doesn't work in Vim. I'm don't think line continuation works in an interactive Vim command line, but in a script you put the '\' at the BEGINNING of the 2nd line of a continued line, instead of at the end of the first. I think you want, as Tim suggests, to use an '|' instead of a '\' and a newline to separate your commands which are to be run together. -- 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
