% in ex and the last line

Nikolai Weibull now at bitwi.se
Sat Sep 24 12:57:56 CEST 2011


Hi!

So

%s/$/a

gets into an infinite loop.  There’s an incompatibility between how
Emacs and Evil treats the last line.  Emacs has a blank line at the
end of the file if the last line ends with a newline.  Evil doesn’t
ignore this line properly, the way Vi does.



More information about the implementations-list mailing list