咳黄痰是什么原因
Tagged with statusline buffers
9 questions
0
votes
1
answer
186
views
Unclosed expression sequence error when setting statusline?
I am trying to display the number of loaded buffers on my statusline using:
...
set statusline += %{len(getbufinfo({"buflisted":1}))}
...
The error I get is :
E540: Unclosed expression ...
1
vote
1
answer
944
views
Show buffer title at top of window instead of bottom
By default vim shows the filename of the current buffer (or whatever status line you have specified) at the bottom of each split window. Is there any way to change it so that it displays at the top of ...
0
votes
0
answers
594
views
How to set statusline for specific buffer
I want to use netrwm instead of nerdtree. I have my own statusline but I don't want it to be displayed in netrw. Nerdtree had it's own option for it (let NERDTreeStatusline="") which made it ...
2
votes
1
answer
169
views
Having current filename in the command line
Some time ago I completely got rid of the status line. Vertical space is a scarcity in the modern HD world. The only thing I missed from it is an ability to see what file I'm working with. So I'm ...
2
votes
1
answer
8k
views
How to display all buffer names in tabline?
How do I display the list of all buffers in the tabline? I am using the lightline plugin, with the following settings in my .vimrc:
set showtabline=2
let g:lightline = { 'colorscheme': 'PaperColor' }
...
0
votes
1
answer
941
views
vim: count how many buffers been modified?
Pursuing a vimscript function or expression that
count how many buffers been modified.
i.e., how many buffers :bm could switch to,
given that option hidden is set.
== Edit ==
In the hope of used ...
1
vote
0
answers
131
views
How do I prevent resizing of particular buffer?
I have these mappings in my .vimrc:
nnoremap <s-j> <C-w>-
nnoremap <s-k> <C-w>+
In a single buffer, Shiftj results in resizing my (pic1) buffer. Im not sure about that, but i ...
2
votes
2
answers
2k
views
Short buffer name
Is there a way to shorten the displayed name of the buffer, for example, on the image, path(...)/application_controller.rb to simply "application_controller.rb"?
If I have many buffers with such long ...
4
votes
1
answer
295
views
Strange interaction of set hidden, shortmess and the status line
My .vimrc contains
set hidden
set shortmess=fotx
I start Vim 7.3 with
vim a b
I modify a (optional), then I save it and switch to the next file with :wn. Then I use :prev to return to the previous ...