Questions tagged [hidden-buffers]
The hidden-buffers tag has no usage guidance.
14
questions
2
votes
2answers
52 views
Buffer scope variable not exists when run autocmd BufUnload
Describe the issue
I use a vim plugin that when use Vim to open a ipynb (python notebook) file, will call system function to use jupytext create corresponding python file to enable use like, YCM to ...
2
votes
1answer
36 views
Command to load buffer but not make it current
I can list buffers with :ls and see their load state. I can load all the buffers using :bufdo e and a specific buffer using a range, for instance to load only buffer 2 :2bufdo e, however this makes ...
2
votes
2answers
62 views
Move to window if specified buffer is opened
I am currently trying to write myself a function the will let me show or hide (toggle) the :terminal window. The only way to hide it, as far as I currently know, is to just navigate to that window and ...
1
vote
1answer
78 views
How to show the name of a help buffer in the tabline of the airline?
I use :h command to open a help buffer. When I switch to other buffers, I can't go back to the opened help buffer. How can I show the name of a help buffer in the tabline of the airline?
2
votes
1answer
197 views
Everytime I call :Explore netrw creates a new unlisted buffer
Is there any way to stay always in the same netrw buffer after selecting a file to edit?
0
votes
1answer
445 views
Hide terminal buffer from buffer list
How do I keep the terminal buffer from showing up in my airline list of buffers?
I assume airline just pulls buffers from what normally shows up in :ls. But I actually don't want the terminal to show ...
1
vote
1answer
757 views
Creating a hidden buffer
I know that with commands like sbuffer you can create a new buffer and display it in a split window, and commands like enew can create a new buffer in the current window. But is it possible to not ...
0
votes
0answers
108 views
How to properly organize persistence of the vim state of all opened buffers?
Before switching to vim years ago I was using Sublime Text and it perfectly handled situations when I just close it and open again. Nothing is lost and at the place where I left it off. So I'm aiming ...
0
votes
1answer
20 views
Open a second file and quit the previously opened one without saving
If I do something like this:
vim
i
# Write some tmp text
# This tmp file served it's purpose, want to quit this one and open a new one
:e newfile
# E37: No write since last change (add ! to override)
...
1
vote
0answers
723 views
Why does “E89: No write since last change” error not occur when commands are joined with bar?
I have :set hidden set in my ~/.vimrc.
First I did this:
vim foo bar
:bnEnter
ihelloEsc
:bpEnter
:bd#Enter
The :bd# command leads to this error:
E89: No write since last change for buffer 2 (add ! ...
0
votes
1answer
128 views
vim :make :cwindow, I need error length character limit larger than 1000
I am compiling a program with :make command, then I examine g++ errors using :cwindow. The problem is that the error produced by g++ is longer than 1000 characters and it is cut.
Currently I have to ...
2
votes
1answer
516 views
Buffers are left even when `nohidden` is set
I have explictly said in my vimrc that I want nohidden behaviour (I am jumping between files a lot, with long lasting session, and after some time buffers list is very polluted). However when I jump ...
3
votes
1answer
616 views
How to detect the buffer number of new buffer
I would like to create a new scratch buffer in vim script. I would like to use this buffer to output the result of the execution of a scala script.
I am creating the buffer with this function:
...
2
votes
1answer
2k views
“set hidden” leaves many *empty* buffers. Can I automatically get rid of them?
I recently added set hidden to my vimrc script because I didn't always want to :write a file before :editing another file. (With set nohidden, which is the default, this resulted in a E37: No write ...