mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 19:20:06 +08:00
7 lines
244 B
Plaintext
7 lines
244 B
Plaintext
|
Execute ( SpaceVim api: vim#buffer ):
|
||
|
new
|
||
|
let buffer = SpaceVim#api#import('vim#buffer')
|
||
|
call buffer.open({'bufname':'foo', 'cmd' : 'setl buftype=nofile bufhidden=wipe'})
|
||
|
AssertEqual bufname('%'), 'foo'
|
||
|
AssertEqual &buftype, 'nofile'
|