Skip to content

Ace-Who/vim-AutoCenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

vim-AutoCenter

When enabled, center the current line automatically.

Usage

  • :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.

Dependency

  • MappingMem plugin. Optional but recommended. Used to restore the mappings overriden or deleted by AutoCenter when you turn it off.

About

Center text automatically

Resources

Stars

Watchers

Forks

Packages

No packages published