When enabled, center the current line automatically.
:AutoCenterOn
: enable AutoCenter.:AutoCenterOff
: disable AutoCenter.
When enabled,
- center current line whenever the text is changed except by an undo or redo operation, so it doesn't affect them.
=
key acts like its default behavior except that it centers lines instead of indenting them.<CR>
is unmapped for Insert mode in case some existing mapping may affect the centering function.
- MappingMem plugin. Optional but
recommended. Used to restore the mappings overriden or deleted by
AutoCenter
when you turn it off.