From 545e8817d6c577e62778d020a2248e030344d3b3 Mon Sep 17 00:00:00 2001 From: nojhan Date: Sat, 4 Aug 2012 13:23:08 +0200 Subject: [PATCH] When jumping to a given line, center the screen --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index 051bbd7..ba08900 100644 --- a/.vimrc +++ b/.vimrc @@ -62,6 +62,9 @@ let mapleader = "," " leader key is comma " xx will delete the line without copying it into the default register nnoremap xx "_dd +" When jumping to a given line, center the screen +nnoremap G Gzz + " ,v will reselect the text that was just pasted nnoremap v V`]