Created
March 14, 2015 01:58
-
-
Save dahu/0e720c57714ebce806c1 to your computer and use it in GitHub Desktop.
Vertically re-centre screen after searching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Barry Arthur, March 2013 | |
| " Always vertically centre the screen after searching | |
| nnoremap / :let searching = 1<cr>/ | |
| augroup CenteredSearches | |
| au! | |
| au CursorHold,CursorMoved * if exists('g:searching') | exe 'normal! zz' | unlet g:searching | endif | |
| augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment