From 63c87697a4eafe134ae1196021afd8441c6b4e33 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 24 Nov 2010 00:24:59 +0100 Subject: [PATCH] vimrc: Behave like 'scrolloff' while searching. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vimrc b/vimrc index 582797e..7d1f0ae 100644 --- a/vimrc +++ b/vimrc @@ -214,6 +214,11 @@ 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 -- 2.45.2