From 9af971c5fed495e425ca41049dd2b8130f4c2f27 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 29 May 2014 15:40:36 -0400 Subject: vimrc: add sb to set scrollbind For a quick way to scroll two windows together. Useful for looking at two different versions of a file where the versions are themselves separate files. --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 2a79f05..7f7ce1d 100644 --- a/vimrc +++ b/vimrc @@ -169,6 +169,10 @@ " buffer (obviously in retrospect). Here, use BufReadPre to set the " buffer variable for all buffers that get opened. " +" 2014.05.29: +" * Add sb to set scrollbinding so I can quickly set two windows +" to scroll together +" " Pathogen @@ -453,6 +457,9 @@ nnoremap tn :tabnew nnoremap ]q :cnext nnoremap [q :cprevious +" Set scrollbind on a window +nnoremap sb :setlocal scrollbind! + " Commands -- cgit v1.2.3