Skip to content

Commit

Permalink
Update the URL of the dependency plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace-Who committed Apr 11, 2017
1 parent b99bc17 commit 0cb8f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ When enabled, center the current line automatically.

## Dependency

[`SaveLoadMapping`](https://github.com/Ace-Who/vim-SaveLoadMapping) plugin. This
[`SaveLoadMapping`](https://github.com/Ace-Who/vim-MappingMem) plugin. This
is not necessary but recommended, which can restore the mappings overriden by
`AutoCenter` when you turn it off.

Expand Down
8 changes: 4 additions & 4 deletions autoload/AutoCenter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ function! AutoCenter#On() "{{{
endif
augroup AutoCenter
autocmd!
" !!Warning!! Undo and redo also change the text, triggering the AutoCenter
" !!Note!! Undo and redo also change the text, triggering the AutoCenter
" autocmd, which changes the effect of undo and BREAKS REDO if this command
" changes the text. So we don't center text in this case.
" changes the text. So we don't center text in these cases.
autocmd TextChanged,TextChangedI *
\ if !s:isUndoRedo() | call s:center() | endif
augroup END
" Ues '=' key to center lines in Normal and Visual mode.
" Save the mappings first for restoring when turning off AutoCenter.
" This requires the 'SaveMapping' plugin
" (https://github.com/Ace-Who/vim-SaveLoadMapping).
" (https://github.com/Ace-Who/vim-MappingMem).
if exists(':SaveMapping') == 2
silent SaveMapping '=', 'n', 'global'
silent SaveMapping '==', 'n', 'global'
Expand Down Expand Up @@ -57,7 +57,7 @@ function! AutoCenter#Off() "{{{
nunmap ==
xunmap =
" Restore the mappings saved earlier. This requires the 'SaveMapping' plugin
" (https://github.com/Ace-Who/vim-SaveLoadMapping).
" (https://github.com/Ace-Who/vim-MappingMem).
if exists(':LoadMapping') == 2
silent LoadMapping '=', 'n', 'global'
silent LoadMapping '==', 'n', 'global'
Expand Down

0 comments on commit 0cb8f14

Please sign in to comment.