From: Simon Ruderich Date: Tue, 21 Jun 2011 13:22:14 +0000 (+0200) Subject: Revert "vimrc: Behave like 'scrolloff' while searching." X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=ca462be37e2015ee7dc289969c6b5da81e545687;p=config%2Fdotfiles.git Revert "vimrc: Behave like 'scrolloff' while searching." This reverts commit 63c87697a4eafe134ae1196021afd8441c6b4e33. It caused problems with matches at the end of the file (you can't reach them because of the wrong "scrolloff"). --- diff --git a/vimrc b/vimrc index 4c5f852..6e41864 100644 --- a/vimrc +++ b/vimrc @@ -227,11 +227,6 @@ cnoremap nnoremap nnoremap - -" Behave like 'scrolloff' but only while searching. Thanks to "Benjamin R. -" Haskell" from the Vim mailing list (2010-10-26). -nnoremap n nzv3j3k -nnoremap N Nzv3k3j - " Go to next and previous buffer. Thanks to elik in #vim on Freenode " (2010-05-16 18:38 CEST) for this idea. nnoremap gb :bnext