defaults: wildoptions=pum,tagfile #10384

ref #6289
This commit is contained in:
Justin M. Keyes
2019-07-01 23:59:24 +02:00
committed by GitHub
parent ff95e62ff8
commit 097f85ae6c
6 changed files with 33 additions and 33 deletions

View File

@@ -6653,17 +6653,16 @@ A jump table for the options with a short description can be found at |Q_op|.
More info here: |cmdline-completion|. More info here: |cmdline-completion|.
*'wildoptions'* *'wop'* *'wildoptions'* *'wop'*
'wildoptions' 'wop' string (default "") 'wildoptions' 'wop' string (default "pum,tagfile")
global global
A list of words that change how command line completion is done. List of words that change how |cmdline-completion| is done.
pum Display the completion matches using the popupmenu
in the same style as the |ins-completion-menu|.
tagfile When using CTRL-D to list matching tags, the kind of tagfile When using CTRL-D to list matching tags, the kind of
tag and the file of the tag is listed. Only one match tag and the file of the tag is listed. Only one match
is displayed per line. Often used tag kinds are: is displayed per line. Often used tag kinds are:
d #define d #define
f function f function
pum Display the completion matches using the popupmenu
in the same style as the |ins-completion-menu|.
Also see |cmdline-completion|.
*'winaltkeys'* *'wak'* *'winaltkeys'* *'wak'*
'winaltkeys' 'wak' string (default "menu") 'winaltkeys' 'wak' string (default "menu")

View File

@@ -26,13 +26,14 @@ the differences.
- Syntax highlighting is enabled by default - Syntax highlighting is enabled by default
- ":filetype plugin indent on" is enabled by default - ":filetype plugin indent on" is enabled by default
- 'autoindent' is set by default - 'autoindent' is enabled
- 'autoread' is set by default - 'autoread' is enabled
- 'background' always defaults to "dark" - 'background' defaults to "dark" (unless set automatically by the terminal/UI)
- 'backspace' defaults to "indent,eol,start" - 'backspace' defaults to "indent,eol,start"
- 'backupdir' defaults to .,~/.local/share/nvim/backup (|xdg|) - 'backupdir' defaults to .,~/.local/share/nvim/backup (|xdg|)
- 'belloff' defaults to "all" - 'belloff' defaults to "all"
- 'complete' doesn't include "i" - 'compatible' is always disabled
- 'complete' excludes "i"
- '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,msgsep" - 'display' defaults to "lastline,msgsep"
@@ -41,27 +42,27 @@ the differences.
- 'formatoptions' defaults to "tcqj" - 'formatoptions' defaults to "tcqj"
- 'fsync' is disabled - 'fsync' is disabled
- 'history' defaults to 10000 (the maximum) - 'history' defaults to 10000 (the maximum)
- 'hlsearch' is set by default - 'hlsearch' is enabled
- 'incsearch' is set by default - 'incsearch' is enabled
- 'langnoremap' is enabled by default - 'langnoremap' is enabled
- 'langremap' is disabled by default - 'langremap' is disabled
- 'laststatus' defaults to 2 (statusline is always shown) - 'laststatus' defaults to 2 (statusline is always shown)
- 'listchars' defaults to "tab:> ,trail:-,nbsp:+" - 'listchars' defaults to "tab:> ,trail:-,nbsp:+"
- 'nocompatible' is always set
- 'nrformats' defaults to "bin,hex" - 'nrformats' defaults to "bin,hex"
- 'ruler' is set by default - 'ruler' is enabled
- 'sessionoptions' doesn't include "options" - 'sessionoptions' excludes "options"
- 'shortmess' includes "F", excludes "S" - 'shortmess' includes "F", excludes "S"
- 'showcmd' is set by default - 'showcmd' is enabled
- 'sidescroll' defaults to 1 - 'sidescroll' defaults to 1
- 'smarttab' is set by default - 'smarttab' is enabled
- 'tabpagemax' defaults to 50 - 'tabpagemax' defaults to 50
- 'tags' defaults to "./tags;,tags" - 'tags' defaults to "./tags;,tags"
- 'ttimeoutlen' defaults to 50 - 'ttimeoutlen' defaults to 50
- 'ttyfast' is always set - 'ttyfast' is always set
- 'undodir' defaults to ~/.local/share/nvim/undo (|xdg|), auto-created - 'undodir' defaults to ~/.local/share/nvim/undo (|xdg|), auto-created
- 'viminfo' includes "!" - 'viminfo' includes "!"
- 'wildmenu' is set by default - 'wildmenu' is enabled
- 'wildoptions' defaults to "pum,tagfile"
============================================================================== ==============================================================================
3. New Features *nvim-features* 3. New Features *nvim-features*

View File

@@ -2177,10 +2177,8 @@ static char_u *option_expand(int opt_idx, char_u *val)
return NameBuff; return NameBuff;
} }
/* // After setting various option values: recompute variables that depend on
* After setting various option values: recompute variables that depend on // option values.
* option values.
*/
static void didset_options(void) static void didset_options(void)
{ {
// initialize the table for 'iskeyword' et.al. // initialize the table for 'iskeyword' et.al.
@@ -2195,6 +2193,7 @@ static void didset_options(void)
(void)opt_strings_flags(p_dy, p_dy_values, &dy_flags, true); (void)opt_strings_flags(p_dy, p_dy_values, &dy_flags, true);
(void)opt_strings_flags(p_tc, p_tc_values, &tc_flags, false); (void)opt_strings_flags(p_tc, p_tc_values, &tc_flags, false);
(void)opt_strings_flags(p_ve, p_ve_values, &ve_flags, true); (void)opt_strings_flags(p_ve, p_ve_values, &ve_flags, true);
(void)opt_strings_flags(p_wop, p_wop_values, &wop_flags, true);
(void)spell_check_msm(); (void)spell_check_msm();
(void)spell_check_sps(); (void)spell_check_sps();
(void)compile_cap_prog(curwin->w_s); (void)compile_cap_prog(curwin->w_s);

View File

@@ -2750,9 +2750,9 @@ return {
full_name='wildoptions', abbreviation='wop', full_name='wildoptions', abbreviation='wop',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true, deny_duplicates=true,
vi_def=true, vim=true,
varname='p_wop', varname='p_wop',
defaults={if_true={vi=""}} defaults={if_true={vi='', vim='pum,tagfile'}}
}, },
{ {
full_name='winaltkeys', abbreviation='wak', full_name='winaltkeys', abbreviation='wak',

View File

@@ -7,17 +7,18 @@ endif
let s:did_load = 1 let s:did_load = 1
" Align Nvim defaults to Vim. " Align Nvim defaults to Vim.
set sidescroll=0
set directory^=.
set undodir^=.
set backspace= set backspace=
set nrformats+=octal set directory^=.
set nohidden smarttab noautoindent noautoread complete-=i noruler noshowcmd
set listchars=eol:$
set fillchars=vert:\|,fold:- set fillchars=vert:\|,fold:-
set shortmess-=F
set laststatus=1 set laststatus=1
set listchars=eol:$
set nohidden smarttab noautoindent noautoread complete-=i noruler noshowcmd
set nrformats+=octal
set shortmess-=F
set sidescroll=0
set tags=./tags,tags set tags=./tags,tags
set undodir^=.
set wildoptions=
" Prevent Nvim log from writing to stderr. " Prevent Nvim log from writing to stderr.
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log' let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'

View File

@@ -28,7 +28,7 @@ local nvim_prog = (
-- Default settings for the test session. -- Default settings for the test session.
local nvim_set = 'set shortmess+=IS background=light noswapfile noautoindent' local nvim_set = 'set shortmess+=IS background=light noswapfile noautoindent'
..' laststatus=1 undodir=. directory=. viewdir=. backupdir=.' ..' laststatus=1 undodir=. directory=. viewdir=. backupdir=.'
..' belloff= noshowcmd noruler nomore' ..' belloff= wildoptions-=pum noshowcmd noruler nomore'
local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE', local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE',
'--cmd', nvim_set, '--embed'} '--cmd', nvim_set, '--embed'}
-- Directory containing nvim. -- Directory containing nvim.