Sorry, I'm attaching the patch instead of sending it inline, contrary to the contribution guidelines, but I'll include the commit message inline.  Google already has an FSF copyright assignment for Emacs; fwiw, so do I.   Feedback on the right place in the manual to document this would be particularly welcome, since I wasn't certain which the optimal spot was.  Add new module vimvars  * emulation/vimvars.el: New file; supports "vi: set foo" mode  lines in vi, ex, vim and similar editors.  * custom.texi (vi-compatible modeline): New section describing vimvars.  * misc.texi (Emulation): Mention vimvars.  * NEWS: Mention addition of vimvars.el. -- Google Ireland Ltd., Gordon House, Barrow Street, Dublin 4, Ireland Registered in Dublin, Ireland.  Registration Number: 368047 http://tinyurl.com/345mmx