summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-28 14:39:44 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-28 14:39:44 +0200
commit4427db9bb2f4b4587559eac18cc7ba10c52c6e8b (patch)
treea7a6806ed85df2d6ce5a0af0b5dfe3499f518691 /runtime
parent6a402edbeb693113f05d9319cd20ec382a0a1a20 (diff)
downloadvim-git-4427db9bb2f4b4587559eac18cc7ba10c52c6e8b.tar.gz
patch 7.4.2278v7.4.2278
Problem: New users have no idea of the 'scrolloff' option. Solution: Set 'scrolloff' in defaults.vim.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/defaults.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 023d64020..0ff834a2a 100644
--- 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 after Esc for special key
" 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