diff runtime/defaults.vim @ 10011:306f72cd32c2 v7.4.2278

commit https://github.com/vim/vim/commit/4427db9bb2f4b4587559eac18cc7ba10c52c6e8b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 14:39:44 2016 +0200 patch 7.4.2278 Problem: New users have no idea of the 'scrolloff' option. Solution: Set 'scrolloff' in defaults.vim.
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Aug 2016 14:45:05 +0200
parents 3fba3e8326a7
children 43efa4f5a8ea
line wrap: on
line diff
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -1,7 +1,7 @@
 " The default vimrc file.
 "
 " Maintainer:	Bram Moolenaar <Bram@vim.org>
-" Last change:	2016 Aug 21
+" Last change:	2016 Aug 28
 "
 " This is loaded if no vimrc file was found.
 " Except when Vim is run with "-u NONE" or "-C".
@@ -31,6 +31,9 @@ set ttimeoutlen=100	" wait up to 100ms a
 " Show @@@ in the last line if it is truncated.
 set display=truncate
 
+" Show a few lines of context around the cursor.
+set scrolloff=5
+
 " Do incremental searching when it's possible to timeout.
 if has('reltime')
   set incsearch