How may I set a hidden buffer as 'nolisted' from a vim script?
I tried:
call setbufvar(2, 'buflisted', 1)
views:
66answers:
1
+2
A:
You have to add ampersand sign to 'buflisted' to show to Vim that it is the option:
call setbufvar(2, '&buflisted', 1)
Mykola Golubyev
2009-04-11 22:12:08
Ricardo
2009-04-12 14:03:37
or if the buffer is already opened let or set optionname=value
Mykola Golubyev
2009-04-12 14:10:19