1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-25 02:20:04 +08:00
SpaceVim/test/api/vim/buffer.vader
Timg 81d7f535b8 Add APIs (#465)
* 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
2017-05-07 23:34:27 +08:00

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'