That's a syntax error without the last slash.
$ echo 'abc 126 def' >file $ vi file -c 's/126/84' -c 'wq' $ cat file abc 84 def