defaults: set 'display' to "lastline" by default.

Re: https://github.com/neovim/neovim/issues/2676
This commit is contained in:
Felipe Morales
2015-06-20 14:17:26 -03:00
committed by Justin M. Keyes
parent 7e7d78b2a6
commit 2c40d117e6
3 changed files with 4 additions and 3 deletions

View File

@@ -2253,7 +2253,7 @@ A jump table for the options with a short description can be found at |Q_op|.
security reasons. security reasons.
*'display'* *'dy'* *'display'* *'dy'*
'display' 'dy' string (default "") 'display' 'dy' string (default "lastline", Vi default: "")
global global
Change the way text is displayed. This is comma separated list of Change the way text is displayed. This is comma separated list of
flags: flags:

View File

@@ -32,6 +32,7 @@ these differences.
- 'autoindent' is set by default. - 'autoindent' is set by default.
- 'backspace' defaults to "indent,eol,start" - 'backspace' defaults to "indent,eol,start"
- 'complete' doesn't include "i" - 'complete' doesn't include "i"
- 'display' defaults to "lastline"
- 'encoding' defaults to "utf-8" - 'encoding' defaults to "utf-8"
- 'formatoptions' defaults to "tcqj" - 'formatoptions' defaults to "tcqj"
- 'hlsearch' is set by default - 'hlsearch' is set by default

View File

@@ -645,9 +645,9 @@ static vimoption_T
{"directory", "dir", P_STRING|P_EXPAND|P_VI_DEF|P_COMMA|P_NODUP|P_SECURE, {"directory", "dir", P_STRING|P_EXPAND|P_VI_DEF|P_COMMA|P_NODUP|P_SECURE,
(char_u *)&p_dir, PV_NONE, (char_u *)&p_dir, PV_NONE,
{(char_u *)DFLT_DIR, (char_u *)0L} SCRIPTID_INIT}, {(char_u *)DFLT_DIR, (char_u *)0L} SCRIPTID_INIT},
{"display", "dy", P_STRING|P_VI_DEF|P_COMMA|P_RALL|P_NODUP, {"display", "dy", P_STRING|P_VIM|P_COMMA|P_RALL|P_NODUP,
(char_u *)&p_dy, PV_NONE, (char_u *)&p_dy, PV_NONE,
{(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, {(char_u *)"", (char_u *)"lastline"} SCRIPTID_INIT},
{"eadirection", "ead", P_STRING|P_VI_DEF, {"eadirection", "ead", P_STRING|P_VI_DEF,
(char_u *)&p_ead, PV_NONE, (char_u *)&p_ead, PV_NONE,
{(char_u *)"both", (char_u *)0L} {(char_u *)"both", (char_u *)0L}