地理信息双创总决赛落幕 行业新生力量蓄势待发
163 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 ...
8
votes
0
answers
516
views
gVim - Use different fonts using :highlight
I want to set gVim font size for Comment highlight group. When I set it, it does not do anything (the font is still the same but color changes).
My .gvimrc:
se guifont=Fira\ Mono\ Regular\ 10
hi ...
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 ...
5
votes
0
answers
548
views
Why are Vim 8 :term colours with gvim different from those in plain vim :term or bash?
Vim 8 :term colours in gvim happen to be different from those seen in plain vim :term or bash.
How come? How does one obtain the same bash colours in gvim?
EDIT: I have been reading a bit more about ...
5
votes
0
answers
3k
views
Unable to map ctrl-l
My _vimrc contains the following lines:
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
nmap <c-l> :w<CR>
nmap <c-m> :w<CR>
I ...
4
votes
0
answers
437
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
0
answers
868
views
Why does Gvim not see my X11 fonts?
After going blind from using Gvim with non-bitmapped fonts, I tried to narrow my question from the previous attempts (1) and (2) (with older attempts going back years). Specifically, I wanted to find ...
4
votes
1
answer
786
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
270
views
Directory symlink browsing moves me to new location when autochdir is set
I have a symlinked directory as such:
~/nested
Which points to this directory:
~/whatever/yetanother/andanother/nested
When I launch gvim or command line vim (7.4, with the standard, built-in netrw ...
4
votes
0
answers
1k
views
How to resolve gVim startup error "No D-BUS daemon running"
Stating gnome-vim from the terminal on Linux Mint 17.3 I am getting the following error:
An error occurred while loading or saving configuration information for gvim. Some of your configuration ...
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-...
4
votes
0
answers
3k
views
How to Make gVim Transparent
I am using Vim on Arch Linux. One thing I like to do is using my transparent terminal I can be editing a latex file and have it automatically compiling and showing behind what I am writing. Is there a ...
4
votes
1
answer
499
views
Stray characters when scrolling in gvim
When scrolling with the mouse wheel, characters will often duplicate themselves on subsequent lines. For instance, if I'm scrolling down, I can sometimes see an open brace on its line and on the ...
3
votes
1
answer
332
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 ...