defaults: set 'listchars' to "tab:> ,trail:-,nbsp:+". #2872

Re: https://github.com/neovim/neovim/issues/2676
This commit is contained in:
Felipe Morales
2015-06-20 17:16:10 -03:00
committed by Justin M. Keyes
parent 105a72eabc
commit be29de1fa2
7 changed files with 23 additions and 13 deletions

View File

@@ -515,6 +515,9 @@ void set_init_1(void)
/* Parse default for 'fillchars'. */
(void)set_chars_option(&p_fcs);
/* Parse default for 'listchars'. */
(void)set_chars_option(&p_lcs);
/* enc_locale() will try to find the encoding of the current locale. */
p = enc_locale();
if (p != NULL) {

View File

@@ -1422,10 +1422,10 @@ return {
full_name='listchars', abbreviation='lcs',
type='string', list='comma', scope={'global'},
deny_duplicates=true,
vi_def=true,
vim=true,
redraw={'all_windows'},
varname='p_lcs',
defaults={if_true={vi="eol:$"}}
defaults={if_true={vi="eol:$", vim="tab:> ,trail:-,nbsp:+"}}
},
{
full_name='loadplugins', abbreviation='lpl',

View File

@@ -57,7 +57,7 @@ STARTTEST
:let line1=ScreenChar(line('.'),10)
:call DoRecordScreen()
:let g:test=" Test 8: breakindent + shift:1 + nu + sbr=# list briopt:sbr"
:set briopt=shift:1,sbr,min:0 nu sbr=# list
:set briopt=shift:1,sbr,min:0 nu sbr=# list lcs&vi
:let line1=ScreenChar(line('.'),10)
:call DoRecordScreen()
:let g:test=" Test 9: breakindent + shift by +1 + 'nu' + sbr=# list"