From 0cd8afe62b57eb77797b72284be2c5b20cdd8b80 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 27 Oct 2013 20:15:26 +0100 Subject: [PATCH] center cursor after search --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index 94c32a8..243745e 100644 --- a/vimrc +++ b/vimrc @@ -18,6 +18,8 @@ set hlsearch " highlight all matches for the last used search nmap n :silent nohl " use leader-# to display the number of matches for the last search nmap # :%s:/::gn +" center cursor after search +nnoremap n nzz set nostartofline " don't move the cursor to the first non-blank char of a line set path=.,** " current + subdirectory search for :find, :grep:, ... -- 2.48.1