comparison 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
comparison
equal deleted inserted replaced
10010:a1ba629a1fab 10011:306f72cd32c2
1 " The default vimrc file. 1 " The default vimrc file.
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last change: 2016 Aug 21 4 " Last change: 2016 Aug 28
5 " 5 "
6 " This is loaded if no vimrc file was found. 6 " This is loaded if no vimrc file was found.
7 " Except when Vim is run with "-u NONE" or "-C". 7 " Except when Vim is run with "-u NONE" or "-C".
8 " Individual settings can be reverted with ":set option&". 8 " Individual settings can be reverted with ":set option&".
9 " Other commands can be reverted as mentioned below. 9 " Other commands can be reverted as mentioned below.
28 set ttimeout " time out for key codes 28 set ttimeout " time out for key codes
29 set ttimeoutlen=100 " wait up to 100ms after Esc for special key 29 set ttimeoutlen=100 " wait up to 100ms after Esc for special key
30 30
31 " Show @@@ in the last line if it is truncated. 31 " Show @@@ in the last line if it is truncated.
32 set display=truncate 32 set display=truncate
33
34 " Show a few lines of context around the cursor.
35 set scrolloff=5
33 36
34 " Do incremental searching when it's possible to timeout. 37 " Do incremental searching when it's possible to timeout.
35 if has('reltime') 38 if has('reltime')
36 set incsearch 39 set incsearch
37 endif 40 endif