comparison runtime/defaults.vim @ 11362:2c2b7f486fb0 v8.0.0566

patch 8.0.0566: setting nocompatible for the tiny version moves the cursor commit https://github.com/vim/vim/commit/43d1ac6e81a6796f2e6b3514bbe029cf9bd0a0ae Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 15 15:37:25 2017 +0200 patch 8.0.0566: setting nocompatible for the tiny version moves the cursor Problem: Setting nocompatible for the tiny version moves the cursor. Solution: Use another trick to skip commands when the +eval feature is present. (Christian Brabandt, closes #1630)
author Christian Brabandt <cb@256bit.org>
date Sat, 15 Apr 2017 15:45:03 +0200
parents 2db80d94107d
children d32a62babf5f
comparison
equal deleted inserted replaced
11361:b1a719dfbb52 11362:2c2b7f486fb0
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: 2017 Apr 01 4 " Last change: 2017 Apr 12
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.
26 set nocompatible 26 set nocompatible
27 endif 27 endif
28 28
29 " When the +eval feature is missing, the set command above will be skipped. 29 " When the +eval feature is missing, the set command above will be skipped.
30 " Use a trick to reset compatible only when the +eval feature is missing. 30 " Use a trick to reset compatible only when the +eval feature is missing.
31 if 1 31 silent! while 0
32 nnoremap : :" 32 set nocompatible
33 endif 33 silent! endwhile
34 silent normal :set nocompatible
35 if 1
36 nunmap :
37 endif
38 34
39 " Allow backspacing over everything in insert mode. 35 " Allow backspacing over everything in insert mode.
40 set backspace=indent,eol,start 36 set backspace=indent,eol,start
41 37
42 set history=200 " keep 200 lines of command line history 38 set history=200 " keep 200 lines of command line history