mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
defaults: 'fillchars'
Most fonts should have these by now. Both are a significant visual improvement. - Vertical connecting bar `│` is used by tmux, pstree, Windows 7 cmd.exe and nvim-qt.exe. - Middle dot `·` works on Windows 7 cmd.exe, nvim-qt.exe. For reference: tmux uses these chars to draw lines: │ ├ ─
This commit is contained in:
parent
15670ca1ad
commit
0c930c2969
@ -2377,7 +2377,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Only normal file name characters can be used, "/\*?[|<>" are illegal.
|
Only normal file name characters can be used, "/\*?[|<>" are illegal.
|
||||||
|
|
||||||
*'fillchars'* *'fcs'*
|
*'fillchars'* *'fcs'*
|
||||||
'fillchars' 'fcs' string (default "vert:|,fold:-")
|
'fillchars' 'fcs' string (default "vert:│,fold:·")
|
||||||
global
|
global
|
||||||
{not available when compiled without the |+windows|
|
{not available when compiled without the |+windows|
|
||||||
and |+folding| features}
|
and |+folding| features}
|
||||||
@ -2387,8 +2387,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
item default Used for ~
|
item default Used for ~
|
||||||
stl:c ' ' or '^' statusline of the current window
|
stl:c ' ' or '^' statusline of the current window
|
||||||
stlnc:c ' ' or '=' statusline of the non-current windows
|
stlnc:c ' ' or '=' statusline of the non-current windows
|
||||||
vert:c '|' vertical separators |:vsplit|
|
vert:c '│' vertical separators |:vsplit|
|
||||||
fold:c '-' filling 'foldtext'
|
fold:c '·' filling 'foldtext'
|
||||||
diff:c '-' deleted lines of the 'diff' option
|
diff:c '-' deleted lines of the 'diff' option
|
||||||
|
|
||||||
Any one that is omitted will fall back to the default. For "stl" and
|
Any one that is omitted will fall back to the default. For "stl" and
|
||||||
@ -2396,7 +2396,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
otherwise.
|
otherwise.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:set fillchars=stl:^,stlnc:=,vert:\|,fold:-,diff:-
|
:set fillchars=stl:^,stlnc:=,vert:│,fold:·,diff:-
|
||||||
< This is similar to the default, except that these characters will also
|
< This is similar to the default, except that these characters will also
|
||||||
be used when there is highlighting.
|
be used when there is highlighting.
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ a complete and centralized reference of those differences.
|
|||||||
- 'cscopeverbose' is enabled
|
- 'cscopeverbose' is enabled
|
||||||
- 'directory' defaults to ~/.local/share/nvim/swap// (|xdg|), auto-created
|
- 'directory' defaults to ~/.local/share/nvim/swap// (|xdg|), auto-created
|
||||||
- 'display' defaults to "lastline"
|
- 'display' defaults to "lastline"
|
||||||
|
- 'fillchars' defaults (in effect) to "vert:│,fold:·"
|
||||||
- 'formatoptions' defaults to "tcqj"
|
- 'formatoptions' defaults to "tcqj"
|
||||||
- 'history' defaults to 10000 (the maximum)
|
- 'history' defaults to 10000 (the maximum)
|
||||||
- 'hlsearch' is set by default
|
- 'hlsearch' is set by default
|
||||||
|
@ -951,8 +951,8 @@ EXTERN int lcs_conceal INIT(= ' ');
|
|||||||
/* Characters from 'fillchars' option */
|
/* Characters from 'fillchars' option */
|
||||||
EXTERN int fill_stl INIT(= ' ');
|
EXTERN int fill_stl INIT(= ' ');
|
||||||
EXTERN int fill_stlnc INIT(= ' ');
|
EXTERN int fill_stlnc INIT(= ' ');
|
||||||
EXTERN int fill_vert INIT(= ' ');
|
EXTERN int fill_vert INIT(= 9474); // │
|
||||||
EXTERN int fill_fold INIT(= '-');
|
EXTERN int fill_fold INIT(= 183); // ·
|
||||||
EXTERN int fill_diff INIT(= '-');
|
EXTERN int fill_diff INIT(= '-');
|
||||||
|
|
||||||
/* Whether 'keymodel' contains "stopsel" and "startsel". */
|
/* Whether 'keymodel' contains "stopsel" and "startsel". */
|
||||||
|
@ -812,7 +812,7 @@ return {
|
|||||||
vi_def=true,
|
vi_def=true,
|
||||||
redraw={'all_windows'},
|
redraw={'all_windows'},
|
||||||
varname='p_fcs',
|
varname='p_fcs',
|
||||||
defaults={if_true={vi="vert:|,fold:-"}}
|
defaults={if_true={vi="vert:│,fold:·"}}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
full_name='fixendofline', abbreviation='fixeol',
|
full_name='fixendofline', abbreviation='fixeol',
|
||||||
|
@ -7089,7 +7089,7 @@ static int fillchar_vsep(win_T *wp, int *attr)
|
|||||||
{
|
{
|
||||||
*attr = win_hl_attr(wp, HLF_C);
|
*attr = win_hl_attr(wp, HLF_C);
|
||||||
if (*attr == 0 && fill_vert == ' ') {
|
if (*attr == 0 && fill_vert == ' ') {
|
||||||
return '|';
|
return 9474; // default: "│"
|
||||||
} else {
|
} else {
|
||||||
return fill_vert;
|
return fill_vert;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user