[vim/vim] make ctrl-o does not change buflisted option for nofile buffer (Issue #18882)

4 views
Skip to first unread message

Eric Wong

unread,
9:05 AM (12 hours ago) 9:05 AM
to vim/vim, Subscribed
wsdjeg created an issue (vim/vim#18882)

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.

ctrl-o alway change buffer's buflisted option to true, even if the buffer's buftype option is nofile. I alway use nofile scratch buffer to save temp notes, and use ctrl-o to jump to this buffer after opening a new file. but then the buflisted option of the scratch buf is change, and it will be shown on tabline plugin.

Describe the solution you'd like

  1. vim -u NONE
  2. :enew, :set buftype=nofile, :set nobuflisted
  3. :enew
  4. type ctrl-o
  5. :echo &buflisted

then 1 is printed, I hope the &buflisted option not to be changed.

Describe alternatives you've considered

I know ctrl-o also open files wich is not loaded, maybe do not change buflisted when buftype is set?


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18882@github.com>

Reply all
Reply to author
Forward
0 new messages