揭快递“最后100米”:网点安家难 车辆上路难
614 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
1
answer
2k
views
Can (Neo)Vim be configured to set the filetype according to the shebang?
Lately I've been using neovim to edit lots of files with the .tmpl extension. These files all have shebangs, most (but not all) of which are #!/bin/sh.
The default behavior seems to be that neovim ...
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
901
views
How to exit insert mode if pressing escape merely types "^["?
I have neovim 0.4.2 running in a session of kiTTY 0.17.4 on OSX. I have pasted a long url while in insert mode.
After doing this, every time I type BKSPC vim adds ^? to my document. Every time I type ...
6
votes
0
answers
720
views
How to copy to system clipboard using Mosh + Tmux?
I've set vim.opt.clipboard = "unnamedplus" to copy to/paste from the system clipboard. However, I noticed that the behavior differs whether I'm using nvim in my local machine, a remote ...
6
votes
0
answers
686
views
How to get bold comments in vim
I am trying to add bold comments to my vim files. What i mean, is to be able to get something like this:
I saw other articles like this that allow to toggle bold comment.
The proposed solutions from ...
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
13k
views
How to delete swap files on neovim?
While editing a file my neovim crashed when I tried to save the file (with the error message "init.vim" 77L, 2423C writtennvim(5888,0x7fffa9f29340) malloc: *** error for object ...
5
votes
0
answers
4k
views
How to disable a lsp server using a specific rule?
I'm on a vue project, and I installed both tsserver and volar, but both of them will be called up when I open a *.ts | *.js file.
But for vue project I only want to use volar since both tsserver and ...
5
votes
1
answer
3k
views
How do I perform a code action on a visual range in Neovim 0.9?
In Neovim 0.8, I had the following command mapped
vnoremap <leader>a :lua vim.lsp.buf.range_code_action()<cr>
which in visual mode, gave me options such as Wrap In Try-Catch/Extract Method ...
5
votes
1
answer
370
views
How to normalize a file path opened from the quickfix window?
Setup
I am using NeoVim v0.7.2 (also tested with v0.6.1) on Windows 10 in git-bash, with vim-dispatch to allow for asynchronous builds (building a C++ codebase with Clang).
I have this option in my ...
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
42
views
Neovim makes spurious directories and doesn't clean them up on exit
Neovim makes directories in my home folder (presumably to store swapfiles, etc.) of the form nvimzOvQcg, nvim098eqo, nvimUyUGZ8, etc.
Upon exit, the contents of these directories are cleaned up but ...
5
votes
1
answer
2k
views
How can I configure nvim to use a single escape to exit insert mode?
I was trying out nvim (neovim) for the first time and I find that I have to type <escape> twice to get out of insert mode.
I'm not sure if this is a feature or a bug. I see the same behaviour ...
4
votes
1
answer
836
views
How do I change characters used nvim diagnostics signs?
I'm using ale for diagnostics, but I want to change how it shows signs. It seems the setup is different for nvim since ALE's docs say they don't have any configuration:
When |g:...