1,249 questions
Advice
1
vote
1
replies
76
views
In vim how can I redo the last command, including those done by key-map
What do I want:
I set "<leader>gd" as the key to "go to definition"
vim.keymap.set("n", "<leader>gd", ":Lspsaga goto_definition<Enter>&...
1
vote
1
answer
187
views
Added biome.json with default config, formatting suddenly works - did vtsls switch to biome automatically?
I was trying to get semicolons added automatically using <leader>fm in NvChad. It wasn't working before, so I added a biome.json file to my project directory:
{
"javascript": {
&...
0
votes
0
answers
39
views
create symlink from within vim NerdTree plugin
Inside NerdTree when I am on a file by the line cursor, I can hit m and choose s, which for my understanding should provide symbolic link creation.
It provides a command line (bash), so what to type ...
0
votes
1
answer
67
views
"zsh:1: no such file or directory" when trying to use :CompileRun in Vim
I just started to use Vim as my main IDE and set up some plugins like syntastic.
But when I try to compile and run my program inside Vim by the :CompileRun command, I get this error:
zsh:1: no such ...
0
votes
0
answers
97
views
Is it possible in coq_nvim to configure autocomplete behaviour like vscode
In VS Code when I typing something like var. and press ctrl+space, I can continue typing some prefix with opened autocomplete menu and it will filter it's list. In coq_nvim when I use vim.g....
0
votes
0
answers
25
views
How to exclude files based on mkid --lang-map=$HOME/.id-lang.map for gnu id creation?
I am using mkid to create a gnu id database. In my source code directory some .c files get generated on compilation. Now I need to ignore the paths of these unwanted generated files, while creating ...
2
votes
0
answers
74
views
How to delete till end of line in operator-pending mode mapping in vim
I'm implementing a vim plugin that moves the cursor within current line. It extends the function of f. Think of it as something similar to notable-ft. Here is a simplified illustrative example of the ...
0
votes
0
answers
49
views
EasyMotion plugin doesn't load automatically on Vim startup in WSL Ubuntu
I am using Windows with WSL (Windows Subsystem for Linux) running Ubuntu. In my Vim setup, I have the EasyMotion plugin installed. However, the plugin does not load automatically when I start Vim. I ...
0
votes
0
answers
90
views
How do I install the tagalong plugin with vim-plug?
I am unsure if I followed the steps correctly when trying to install the plugin tagalong.
The problem is its functionality is not working after I installed it. Here are the steps I took.
Per https://...
0
votes
0
answers
168
views
How to Map “Termdebug” Shortcuts in Vim
I want to use F2 to enter Termdebug immediately.
It's convenient to put file's name after the command like: Termdebug xxx (which has complied with -g option)
My host is Windows 11 and use VMware, ...
3
votes
0
answers
904
views
Neovim LSP disable vim.lsp.buf.signature_help() default key binding CTRL-S
I use the vim-rails plugin to edit .erb files.
In VIM in the insert mode, I could use a shortcut CTRL-s + = to insert <%= %> block, as shown here. But in NeoVim this keymapping CTRL-s is used by ...
2
votes
1
answer
135
views
How to execute a Plug in .vimrc conditionally on Vim version?
I have this .vimrc config file
$ cat ~/.vimrc
call plug#begin('~/.vim/plugged')
Plug 'alvan/vim-closetag'
" below only work with vim9
Plug 'yegappan/lsp'
call plug#end()
$
This .vimrc is ...
1
vote
1
answer
90
views
can't build cpp files using "*.cpp" in vimspector
I have this config for cpp, but when i use vimspector#Launch, error appears, it's connected with this string "shell": "g++ -o ${workspaceRoot}/test -g -std=c++2a ${workspaceRoot}/*.cpp&...
4
votes
1
answer
169
views
How to vim syntax highlight Ruby Sorbet signatures as de-emphasized comments?
Normally, Sorbet signatures are syntax highlighted as normal Ruby:
However, I'd like to visually de-emphasize the noisy signatures, perhaps by highlighting them as comments instead.
The following at ~...
1
vote
2
answers
699
views
.clangd file add multiple CompileFlags
I am currently trying to setup a .clangd file to use for my lsp ...
how can i add multiple compile flags?
my file is autogenerated and looks like this:
CompileFlags:
Add:
- -IC:\Users\adria\...
2
votes
0
answers
320
views
Disable math concealement in nvim+vimtex
I use nvim with vimex, and I try to undo the concealement of math formulae.
If I use the command :set conceallevel=0 in vim, it works and remove the concealement.
Nevertheless, I am unable to put ...
0
votes
1
answer
223
views
ipython + vim-jukit, import sys command not escaping double quotes
Using neovim on windows 10 + powershell. vim-jukit plugin installed with lazy. My intention is to have a jupyter notebook-like experience thru (neo)vim
when pressing <leader>os to output split, ...
0
votes
0
answers
2k
views
Neovim: indent-blankline plugin, can't configure mixed indentation
I installed indent-blankline https://github.com/lukas-reineke/indent-blankline.nvim plugin with vim-plug. Their documentation probably has a mistake, because they show the same setup both for 'Simple' ...
0
votes
1
answer
222
views
How to hide the specific warning hint from vim plug ALE supported by clangd in cpp file?
Problem Details:
I download the clangd for vim plug ALU to support the cpp syntax autocompletion, but in C++ code, there is a warning message that always appears as below:
'new' of type 'Vmux41' with ...
2
votes
1
answer
465
views
How to check if ALE found a compile_commands.json file?
I am using neovim with the ALE plugin for linting.
I would like to set the g:ale_c_cc_options variable differently depending on if ALE finds a compile_commands.json file to use. If it does find the ...
2
votes
1
answer
196
views
Problem with rendering text objects in nvim on Linux Mint 21.2 MATE 64-bit
I've installed neovim v.0.10 and the latest NvChad on Linux Mint 21.2 MATE 64-bit:
$ nvim --version
NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Run "nvim -V1 -v" for more ...
0
votes
2
answers
275
views
How to fix this nvim keymap? It's almost working but <Tab> returns extra backslash character when cmp isn't visible
vim.keymap.set("i", "<tab>", function()
local cmp = require("cmp")
if cmp.visible() then
cmp.confirm()
else
return '\\<tab>'
...
0
votes
1
answer
103
views
Properly Tokenize R language in VS Code Vim
In the VSCode Vim plugin, there are various normal mode commands that depend on the boundaries of the word/token under the cursor (e.g. *, w, e, etc). These don't work well with the R language which ...
1
vote
1
answer
443
views
How to develop a vim plugin which is compatible with vim-plug
I'm writing a simple plugin that consists of various files which I'm storing in the standard places: .vim/ftplugin, .vim/plugin, .vim/systax, etc. It's growing and I'd like to have all this sorted in ...
1
vote
1
answer
208
views
How do I fix the current line color using solarized vim dark mode using Termdebug?
I'm using solarized with vim and when I'm debugging (using Termdebug), the current execution line is missing:
I've been working around the issue by switching to light mode:
If I go back to dark, ...
1
vote
0
answers
149
views
Neovim LSP customization - are there downsides with setting LSP for to many languages?
I recently took a deep dive into Neovim and quite enjoy my journey so far. Thing is, I am currently working on a lot of different projects with different techstacks simultaneously, so I'm in need for ...
2
votes
1
answer
809
views
neovim not autoformatting as expected
I'm using neovim, vim-autoformat, and have a .editorconfig setup like so:
root = true
[*]
indent_style = spaces
indent_size = 2
This is what I expect:
however, when I run :Autoformat, this is what ...
0
votes
0
answers
92
views
How do I add the number of currently highlighted characters to the vim-airline plugin?
I'm in love with vim-airline (once I figured out how to configure it) but one thing I cannot figure out how to do is add the count of currently selected/highlighted characters to the bar. I'm hoping ...
0
votes
0
answers
55
views
vim syntax highlight match group doesn't match with all cases
I try to create a syntax highlight match group that match all words only with capital letters with underscores (constants in Java).
My definition:
syn match javaConstants "[A-Z_]\{2,}"
...
0
votes
3
answers
3k
views
How to install Undotree in NvChad?
I am learning to use NeoVim and have started with the NvChad base configuration and have setup a basic python LSP in it.
I recently saw a video where a person was using a plugin called UndoTree and ...
-4
votes
1
answer
1k
views
vim PluginInstall not working in linux how to install plugins
this is my vimrc file in ~/ folder
Note : i use linux (kali linux)
https://pastebin.com/i37cPUSK
i installed vim plug using this
curl -fLo ~/.vim/autoload/plug.vim --create-dirs
https://raw....
0
votes
0
answers
598
views
Vim plugins on IdeaVim
I was using Vim in my computer, but recently I began using IntelliJ as IDE.
I was using some plugins in my Vim such as UltiSnips, vimtex, through vim-plug.
the problem is to transfer the plugins into ...
0
votes
0
answers
419
views
Could not find a valid MSVC version when install YouCompleteMe
I've been trying to install YouCompleteMe to set up for my vimtex, but I encounter some problem here. I've been install python3, Cmake and Visual Studio 2019. but when I follow the instruction to ...
2
votes
1
answer
315
views
REGEX in vim search & replace (VS Code + macbook) not working?
I'm trying to edit a .md file in VS Code and I want to replace every tag starting with #+END_... with a space character (or just nothing). This is in VS Code 1.80.1 with the Vim extension installed, ...
0
votes
1
answer
96
views
"E119: Not enough arguments" error with -nargs=+
These are my commands and functions that get name and address for app or url to launch em withing vim. They store the value in .txt files. Problem is that both commands give me "E119: Not enough ...
4
votes
2
answers
6k
views
Default location of vim-plug installed plugins for neovim
I wanted to work on one of the vim plugins that I had installed using vim-plug for my neovim, and was trying to avoid another copy of the plugin repo. But I am unable to find the default directory in ...
0
votes
1
answer
638
views
Is there any way to make ycm's(Youcompleteme) diagnostics for python more convenient in vi
Ycm build-in in Jedi doesn't support diagnostics. I tried some ways, like YCM's LSP and Syntastics, but various problems appear when using other plugins.
For ycm, lsp, and pyright, it works well ...
0
votes
0
answers
47
views
can I automatically change the colorscheme when a plugin is loaded in vim?
I am using the "Undotree" plugin but I am not happy with the colors. I do not want to change my usual colorscheme for editing purposes. But when I use this plugin,
Chan I change the ...
0
votes
1
answer
344
views
Variables in Vim Plugin
I write a vim plugin to learn some vimscript.
I set the variables in the /autoload/plugin.vim like this:
let g:configpath = '~/home/username/.vim/bundle/testplugin/templates/'
let g:config = '/config....
0
votes
1
answer
2k
views
Weird looking glyphs while installing vim-devicons for neovim
I was setting up neovim, and was installing air-line by using Plugin manager vim-plug. There I noticed some fonts missing (rectangle box), for which I installed JetBrains Mono Nerd font which gave me
...
-1
votes
2
answers
211
views
What is the name of this type of Android Studio popup windows or ideaVim action so i can navigate in it using IdeaVim?
I want to be able to navigate in this kind of windows in Android Studio using IdeaVim. For that I need the name of propper action or the name of this type of popups so I can search further.
Examples ...
1
vote
1
answer
58
views
I had an error on downloading Autopep8 when typing the command: Cocinstall Autopep8
My vim plug:
call plug#begin()
Plug 'tell-k/vim-autopep8'
Plug 'plasticboy/vim-markdown'
Plug 'sheerun/vim-polyglot'
Plug 'jiangmiao/auto-pairs'
Plug 'ap/vim-css-color'
Plug 'preservim/nerdtree'
Plug '...
2
votes
1
answer
113
views
Vundle plugin lingers after uninstall
I had previously installed the mkdx markdown plugin for vim, via Vundle. I later decided to switch to vim-markdown, and uninstalled it. Initially, everything seemed fine, but when I attempted to ...
1
vote
2
answers
4k
views
clangd client: couldn't create connection to server
i'm trying to install clangd extension to coc plugin in vim
when i run CocCommand clangd.install i got these errors :
[coc.nvim] Server clangd failed to start: Error: Pending response rejected since ...
1
vote
1
answer
791
views
Vim: how to start vim with a command without opening new buffer?
I recently upgraded to neovim & I love it. One of things I start to use is the Fugitive plugin, which I really like.
In order to use it as a replacement for git gui, I created a bash alias, to run ...
1
vote
0
answers
818
views
How to configure vim/neovim to locate include (headers) with Makefile?
I'm searching an option or a plugin to vim that will configure vim to use my Makefile to find the paths to the files that I include.
Example (in cpp file):
#include "my_header.hpp"
int main()...
2
votes
3
answers
9k
views
YouCompleteMe unavailable: requires Vim compiled with Python (3.8.0+) support
I would like to install the vim plug-in YouCompleteMe but after installing, when I launch Vim I get the warning:
YouCompleteMe unavailable: requires Vim compiled with Python (3.8.0+) support.
I know ...
0
votes
2
answers
946
views
Can't install neovim in windows
I want to have neovim. I installed it with choco install neovim in the PowerShell (admin). Then I followed a lot of tutorials, like the one of theprimeagen, but I can't get pass the first steps. Maybe ...
1
vote
0
answers
281
views
In nvim, how can I I make it so the mouse will select a split, but not select any text. I only want the mouse to control window focus
I want to be able to toggle on and off this potential feature too. Sometimes, I don't want to change the cursor position, but I want to use my mouse to select a split to focus on.
I tried disabling ...
0
votes
1
answer
66
views
Colorizing custom gitmessage file in vim
I have a custom .gitmessage. It is defined in the git config. I've added a ~/.vim/after/ftplugin/gitcommit.vim to redefine a couple of things in the plugin (in support of Conventional Commits), e.g., ...