mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-25 02:20:04 +08:00
81d7f535b8
* Add vimautoload\SpaceVim\api\job.vimmessage api * Add scriptnames func * Add vim#buffer is_cmdwin * Add test for vim#buffer is_cmdwin() * Update buffer.vim * Update buffer.vader * Add vim buffer api * Add resize func * Fix test * Add vim#tab api
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'
|