Bill McCarthy wrote:
On Sat 7-Oct-06 5:17pm -0600, Yakov Lerner wrote:
Every time I look at the {autocmd BufReadPost * \ if
line("'\"") > 0 && line("'\"") <= line("$") | exe "normal
g`\"" |endif} sequence , I get a feeling like the switch
which would need to be acessible and reachable inside the
car near the driver seat, was palced under the hood near
the engine, and when one needs to access it, you need to
get out of the car and open the hood.
It's probably that extraneous '\' escaping a space between
'*' and 'if' :-)
But if you don't mind the losing the out-of-range checking:
autocmd BufReadPost * '"
1. Apparently your mailer un-beautified the text a little too zealously. That
backslash was supposed to be the first character on a continuation line.
2. "normal" would still be required in the autocommand, because an autocommand
is always an ex-command.
3. To replace the cursor on the exact character where it used to be, the mark
must be called with a backtick: `" not an apostrophe: '" -- the latter would
put the cursor on the first non-blank on the line.
Best regards,
Tony.