new from nofile ?

15 views
Skip to first unread message

M Kelly

unread,
Apr 9, 2020, 10:11:36 AM4/9/20
to vim_use
Hi again,

If my buftype=nofile then I cannot seem to create a new window with new or vnew, ok.
I can change my buftype and then call new.
Is there a special way to create a new regular buffer in a split from a nofile buffer ?
Or a way to restore the old buftype for the orig buffer right after changing it and issuing the new ?

thx, take care,
-m

M Kelly

unread,
Apr 9, 2020, 10:31:03 AM4/9/20
to vim_use
Hi,

ok, I think I can use:
call setbufvar(prev_bufid, "&buftype", "nofile")
to set it back.

thx,
-m

Reply all
Reply to author
Forward
0 new messages