From 52b06b3938776ad304043221572497e9368e40b6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 12 Nov 2015 21:34:26 -0500 Subject: vimrc: Output `scrollbind` value with sb Since our `sb` mapping is a toggle command for `scrollbind`, it can be hard to know whether it's on or off after invoking it if you haven't been paying attention. Output `setl scrollbind?` after performing the toggle so that the current `scrollbind` value displays in the command line area to make it clear what happened. --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index fc73fa7..2daca81 100644 --- a/vimrc +++ b/vimrc @@ -340,6 +340,10 @@ " 2015.10.28: " * Add a mapping to open the current file in Chrome " +" 2015.11.12: +" * Output current scrollbind value after using our sb scrollbind +" toggle mapping. +" " Pathogen @@ -625,7 +629,7 @@ nnoremap ]q :cnext nnoremap [q :cprevious " Set scrollbind on a window -nnoremap sb :setlocal scrollbind! +nnoremap sb :setlocal scrollbind! scrollbind? " Copy to OS X clipboard from visual mode " http://stackoverflow.com/a/17126375 -- cgit v1.2.3