On Sun 27 Apr 2014 at 18:30:37 +0200, Alan Barrett wrote: > On Sun, 27 Apr 2014, Thomas Klausner wrote: > >My question remains: is there a way to set off two commands with vi > >-c? If yes, how? I didn't find a separator that works yet. > > I don't know. The separator is | (vertical bar). Not so intuitive... For reading a new file in front of the existing text, instead of after the current line, use "0read filename" instead of "read filename". The 0 is the line number. > >If not, any other ideas how to get what I want? > > vi -c 'source commandfile', where commandfile contains all the commands > you want. If you need to do many or long commands, that is certainly a better option. And maybe i and a commands would even work. > --apb (Alan Barrett) -Olaf. -- ___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for \X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
Attachment:
pgpO5n8PMZKRU.pgp
Description: PGP signature