mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
feat(defaults): switchbuf=uselast #15394
This commit is contained in:
parent
7215d35694
commit
4ba74953b5
@ -6116,7 +6116,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
specify special kinds of buffers. See |special-buffers|.
|
||||
|
||||
*'switchbuf'* *'swb'*
|
||||
'switchbuf' 'swb' string (default "")
|
||||
'switchbuf' 'swb' string (default "uselast")
|
||||
global
|
||||
This option controls the behavior when switching between buffers.
|
||||
Possible values (comma separated list):
|
||||
|
@ -56,6 +56,7 @@ the differences.
|
||||
- 'sidescroll' defaults to 1
|
||||
- 'smarttab' is enabled
|
||||
- 'startofline' is disabled
|
||||
- 'switchbuf' defaults to "uselast"
|
||||
- 'tabpagemax' defaults to 50
|
||||
- 'tags' defaults to "./tags;,tags"
|
||||
- 'ttimeoutlen' defaults to 50
|
||||
|
@ -2390,7 +2390,7 @@ return {
|
||||
type='string', list='onecomma', scope={'global'},
|
||||
deny_duplicates=true,
|
||||
varname='p_swb',
|
||||
defaults={if_true={vi=""}}
|
||||
defaults={if_true={vi="uselast"}}
|
||||
},
|
||||
{
|
||||
full_name='synmaxcol', abbreviation='smc',
|
||||
|
@ -21,6 +21,7 @@ set undodir^=.
|
||||
set wildoptions=
|
||||
set startofline
|
||||
set sessionoptions+=options
|
||||
set switchbuf=
|
||||
|
||||
" Unmap Nvim default mappings.
|
||||
unmap Y
|
||||
|
@ -1911,7 +1911,7 @@ func Test_switchbuf()
|
||||
enew | only
|
||||
set switchbuf=useopen
|
||||
cexpr "Xqftestfile1:1:10"
|
||||
call assert_equal('', &switchbuf)
|
||||
call assert_equal('uselast', &switchbuf)
|
||||
|
||||
call delete('Xqftestfile1')
|
||||
call delete('Xqftestfile2')
|
||||
|
Loading…
Reference in New Issue
Block a user