乐视网一季度业绩预增逾1亿 电视硬件免费模式将收缩
74 questions with no upvoted or accepted answers
10
votes
0
answers
699
views
Persistently fix the height of a split in vim
So I searched the web far and wide and I can not for the life of me figure out how to do this.
I have the following key binding:
nnoremap <leader>o :below 10sp term://.//$SHELL <cr> :set ...
10
votes
0
answers
699
views
Persistently fix the height of a split in vim
So I searched the web far and wide and I can not for the life of me figure out how to do this.
I have the following key binding:
nnoremap <leader>o :below 10sp term://.//$SHELL <cr> :set ...
6
votes
0
answers
105
views
Filetype changes when using :split and :Explore
Why does using :split and :Explore cause the filetype to change?
For example, edit a file named text.man, and the filetype is set to man. Change the filetype to txt, then :split and :Explore in the ...
5
votes
0
answers
118
views
gvim: Make the mouse follow CTRL-W_j and CTRL-W_k
I run a Linux/GNOME laptop where the focus follows the mouse, and I have vim's mousefocus feature turned on, so the selected viewport follows the mouse, too. But when I try to switch viewports using ...
4
votes
0
answers
436
views
How to preview Markdown in a Vim buffer?
I'm aware of some of the Markdown plugins for Vim, but I want the functionality VS Code and Atom provide, namely being able to split the editor screen and render a live Markdown preview in an adjacent ...
4
votes
1
answer
785
views
Open quickfix in current vertical split
I usually use a layout of one vertical split and two different buffers. When i use :copen, the quickfix window always opens in the right split, regardless where my cursor is. Consequently, if my ...
4
votes
0
answers
2k
views
How can I undo last command in command line?
In general, is there a way to UNDO the last "meta" command (I mean a command entered in command line to manage a window ), or some equivalent keystroke sequence ?
Btw, I know the u (= undo) and CTRL-...
3
votes
1
answer
330
views
Preventing extra window split
:help in Vim will do a window split if there is no help window.
If there is a single window, this is fine.
But when there is already a split (vertical or horizontal), I would like to see the help in a ...
3
votes
1
answer
330
views
Preventing extra window split
:help in Vim will do a window split if there is no help window.
If there is a single window, this is fine.
But when there is already a split (vertical or horizontal), I would like to see the help in a ...
3
votes
0
answers
50
views
Method for each split to have its own undo buffer?
Often, I want to edit multiple different parts of the same file simultaneously. This is usually done with a number of splits. Is there a way such that the undo history in each split is separate? E.g., ...
3
votes
0
answers
173
views
:sbr opens buffers with horizontal split, even with switchbuf set to vsplit
I've set switchbuf to vsplit but when I use :sbr, vim uses a horizontal split to open the new buffer. This seems directly contrary to what :help sbr says:
:sbr[ewind] [+cmd]
Split window and go ...
2
votes
0
answers
343
views
Is it possible to resize a floating window?
As title. Say I just created a floating window and some lines of it are too long to be displayed properly(to me), then in this case I would prefer to resize that window to make it larger instead of ...
2
votes
0
answers
335
views
How to split view all buffers in vim with equal distribution vertical horizontal
How can I split view all buffers in vim with a distribution between vertical and horizontal? Is there a plugin?
I know how to make all buffers appear in either horizontal or vertical splits:
:ball
:...
2
votes
0
answers
80
views
Vim command line bigger when tagbar is open
Vim's command line is bigger when TagBar is opened.
I am using windows terminal but this happens in Command Prompt as well.
What am I doing wrong? Or is there an option that I missed?
2
votes
0
answers
180
views
How do I make the contents shift less when vertically resizing a vim window?
If I open a long file in vim or neovim, and my cursor is not on the first line, and I make the window shorter by either resizing the terminal, or adding another split with <C-W>s or :sp<cr>...