diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-28 14:39:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-28 14:39:44 +0200 |
commit | 4427db9bb2f4b4587559eac18cc7ba10c52c6e8b (patch) | |
tree | a7a6806ed85df2d6ce5a0af0b5dfe3499f518691 | |
parent | 6a402edbeb693113f05d9319cd20ec382a0a1a20 (diff) |
patch 7.4.2278v7.4.2278
Problem: New users have no idea of the 'scrolloff' option.
Solution: Set 'scrolloff' in defaults.vim.
-rw-r--r-- | runtime/defaults.vim | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/defaults.vim b/runtime/defaults.vim index 023d640208..0ff834a2a0 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 diff --git a/src/version.c b/src/version.c index 0be0faa5ca..6f4be8e347 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2278, +/**/ 2277, /**/ 2276, |