Vim: Improved AppendModeline function