OnionKnight wrote:
inside a script you're in "command-mode", and the command "w" you've meant
to should be in "normal-mode", the correct way might be :normal w, :normal
g0w, etc...
Couldn't find anything about command-mode. How is it different from normal
mode? Is each line treated as one command? Like g0w is treated as "g0w"
instead of "g0" and "w"?
[...]
Each script line is treated as one ex-command: if you use w in a script, Wim
interprets it as "write current file" (as if you had used :w from the
keyboard). That's not the same as Normal-mode w (go to next word), and
Insert-mode w (insert a lowercase w into the buffer) is something else again.
Best regards,
Tony.
--
Real computer scientists only write specs for languages that might run
on future hardware. Nobody trusts them to write specs for anything homo
sapiens will ever be able to fit on a single planet.