I've written some commands that perform common functions by placing the following in my
command! FixWhitespace %s/ \+$//g command! FixCommas %s/,\S\@=/, /g
Now I'd like to create a 3rd command that runs both of these, but the following doesn't work:
command! Fix FixWhitespace|FixCommas
When I run
:Fix from within
vim I get the following message:
E488: Trailing characters: FixWhitespace|FixCommas
I'm not sure how this error message relates to what I've done, but I'm obviously not doing something right!
I'm using Vim 7.4.