1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 19:20:06 +08:00
SpaceVim/test/api/vim/buffer.vader

7 lines
244 B
Plaintext
Raw Normal View History

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'