1,251
questions
0
votes
0
answers
34
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
40
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
71
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, ...
0
votes
0
answers
24
views
Ultisnips transformation not working as desired
I have written the following snippet for UltiSnips in Vim. With this snippet I want to add an apostrophe to all lilypond pitches:
snippet 1 "lilypond pitches with apostophes"
$1
${1/\w+\s*/$...
0
votes
0
answers
95
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 ...
0
votes
0
answers
14
views
how do I integrate python code in UltiSnips
I've written simple python code, which writes the String "< >" multiple times to stdout.
I would like to intergrate this in vim UltiSnips, but I don't know how to do it.
Here's my ...
2
votes
1
answer
57
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
53
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&...
3
votes
1
answer
100
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
156
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
106
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
117
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
1k
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
113
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
219
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
116
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
155
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
68
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
199
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 ...
0
votes
0
answers
95
views
How can I make fzf.vim split the window evenly when I use ctrl-x or ctrl-v?
When using the fzf plugin in vim, my configuration is as follows
let g:fzf_action = {
\ 'ctrl-e': 'edit',
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split'),
\ 'ctrl-v': 'vsplit' }
I want to use ...
1
vote
1
answer
131
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
106
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 ...
1
vote
1
answer
331
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
48
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
41
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
2
answers
2k
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
795
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
421
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
343
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 ...
1
vote
1
answer
173
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
64
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 ...
2
votes
2
answers
3k
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
399
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
41
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
217
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
1k
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
...
0
votes
2
answers
118
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
45
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
73
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
3k
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
571
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
503
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()...
1
vote
3
answers
7k
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
1
answer
618
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
181
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
59
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., ...
0
votes
0
answers
737
views
How to manually config nevim lsp and linter to make it smarter?
I'm switching from vscode to neovim (currently using lunarvim). One problem bothered me most is that if my included file don't use relative path, but handle these dependencies in Makefile instead, ...
1
vote
0
answers
211
views
ERROR 117 on nvim when i press "tab" in insert mode
I'm installing some plugins and mapping some shortcuts on my init.vim file, the thing is that when I press the "tab" button on my keyboard in insert mode the program shows me this, in insert ...
0
votes
3
answers
360
views
How do I navigate to the end of the braces when in insert mode in vim?
While trying to access the array elements, I frequently run into a small inconvenience of navigating to the end of the ]. The bracket is autogenerated by the code completion tool when I enter the [.
...
0
votes
1
answer
350
views
Vim key remaping doesn't work in chaining commands
I have following vimrc file
map u <Up>
map n <Left>
map e <Down>
map i <Right>
noremap h i
noremap t w
noremap s b
Delete or changing word with dt or ct works, but when I want ...