Questions tagged [vim-plugin]
The Vim text editor is extensible through plugins, which can be categorized into general utilities, color schemes, file type-specific settings, and syntax definitions.
1,187
questions
1
vote
1
answer
42
views
Vim unexpectedly sources javascript indent filetype plugin on editing html files
TL;DR: vim seems to be sourcing both indent/javascript.vim and indent/html.vim on editing html files; is this intentional or a bug? How can I make html files only source html.vim?
Recently I found ...
-1
votes
0
answers
20
views
Error detected while processing function <SNR>17_setup_buffer_leave: line 10: E329: No menu "Vimwiki"
When I load my vimrc with :so %, and switch to another tab or split window the error message will show.
Error detected while processing function 17_setup_buffer_leave: line 10: E329: No menu "...
0
votes
1
answer
40
views
In a vim expression, how can I return back to normal mode?
I'm using the CoC plugin for which works great.
This command remaps the enter key so we can use enter to confirm selection of the suggestion popover.
This mapping works great, except that it stays in ...
2
votes
2
answers
64
views
How can I use Neovim regex to make a separated selection (of two characters not following one another)?
I'm attempting to replace all strings in a text file surrounded by single quotes and ending with an @ first followed by any number and then any mix of any other letter(s) or #(s) like these:
'package@...
-1
votes
1
answer
21
views
Why is autoload cscope.out enabled only after opening vim for the second time
What I want to do is to create a new cscope database based on different file types every time I open vim, and then automatically load cscope.out
I edit my .vimrc, based on this article: how to auto ...
0
votes
0
answers
24
views
VsCode Vim Extension command to enter insert mode
I am wondering what is the vim command that one can use to enter the insert mode? In other words, what command is executed when you press "i" from normal mode. I want to use this command to ...
0
votes
1
answer
37
views
NeoVim terminal plugins don't work after arch/manjaro update
recently I had a system update on my manjaro system.
Generally I don't do system updates (not just because in linux they are generally unecessary but also because of things like these), and my plugin ...
0
votes
1
answer
30
views
Search a file and open its folder vim
I am using silver searcher in vim. A lot of times I want to search a file BUT open its folder (to see the other files that are there). How can I do it?
0
votes
1
answer
55
views
vim-plug PlugInstall throws PAT authentication error when trying to pull from git?
Trying to set up Neovim with some plugins, and when trying to use :PlugInstall I keep getting an error for a webicon plugin, have set up a Personal Access Token with git multiple times now but can't ...
1
vote
1
answer
49
views
Is there a way to copy a word under the cursor and paste it in fzf line search in vim?
I want to put a word under my cursor like CACHED_VALUE, and I want to put it in fzf line search :Lines or :GFiles, is there a way to achieve this?, because sometimes the variable name is big and ...
0
votes
1
answer
42
views
Pointers on writing a neovim plugin to execute a series of commands on a terminal and resize it to the appropriate size?
When I'm coding in nvim, I find myself often wanting to open a job monitoring command line tool my company uses on the side. Basically I want to map a keybinding to the action :open a neovim terminal ...
-1
votes
1
answer
119
views
The neovim plugin for tpope/vim-surround isn't working in VSCode
I'm looking for thoughts on how I've configured this differently this time.
I have been using this plug in previous versions.
I have the init.vim correctly configured (the plugin works with nvim) from ...
3
votes
1
answer
66
views
Auto-indent javascript in vim, from one-liner to fully indented code
I am using vim to code, namely in javascript. I would love to be able to auto-indent javascript code. My main use case is being able to automatically jump from a one-liner javascript code to a fully ...
0
votes
1
answer
56
views
I was trying type this cmd in neovim "CocInstall coc-python" and i got a error
Btw, I'm on a WSL(Ubuntu) and i was trying to enter this command :CocInstall coc-python in neovim, and got this error:
[coc.nvim] Error on load extension from "/home/helloagrock/.config/coc/...
0
votes
1
answer
1k
views
When I open the nvim init.vim file, this error comes for Neoclide coc.vim
I get this error when I try to open the init.vim file for neovim, for neoclide coc.vim. Any solutions? in WSL(Ubuntu)
[coc.nvim] Error on execute :pyx command, ultisnips feature of coc-snippets ...
1
vote
1
answer
144
views
Just installed nodejs and npm, but sill getting this error in coc. And im windows wsl (Ubuntu)
Got this error in nvim, for neoclide coc. just installed nodejs and npm, still getting this error, it says incompatible node version, and I'm on a Windows WSL ubuntu
**[coc.nvim]: /home/helloagrock/....
0
votes
1
answer
50
views
Automated type hints with Neovim
I am looking for the option to display implicit type detections with Neovim similar to IDES like VSCode or IntelliJ display them. I am not sure if this is possible with a text editor since it is not ...
0
votes
0
answers
18
views
Is "clear a word" with EasyMotion VIM plug-in possible?
With EasyMotion installed, we can use <Plug>(easymotion-bd-w) to jump to any word on the page.
Is there a way to configure my init.vim so that I don't have to press cw for ciw AFTER the jump?
It ...
1
vote
0
answers
722
views
How to override color scheme in neovim lua config file?
how can I override some color scheme value in neovim lua config file? I am trying to use .lua instead of .vim. Previously in my init.vim file I have this to override some settings I want to enable ...
3
votes
1
answer
127
views
How can Vims conceal feature be used to simplify code?
After much Googling I have been unable to make Vim's code conceal feature work with Javascript and Typescript (without requiring a plugin).
I have been trying to use lines like the following in my ....
1
vote
0
answers
56
views
How do I split vim space evenly without changing file explorer size in my .vimrc?
This is basically what I want to happen:
Open vim with ‘vim .’
Upon opening a file, file explorer should be vertically resized to 30 automatically (or whatever size so that it will be on the left ...
0
votes
0
answers
27
views
error when switching to insert mode of vim after installing a github config
I am currently installing a vim config by the name of vimcake. Once the installation is done when I try to write to a file by switching to insert mode this error is displayed permanently. Would you ...
0
votes
1
answer
853
views
Neovim - 'plugged' directory cannot be found
I've been trying to set up a neovim environment on my macOS device for react development and when I was trying to install autocompletion plugin (coc-nvim) via vim-plug and when I tried to navigate to ...
2
votes
0
answers
68
views
Name file based on date and time in Vimwiki
I'm not a programmer and I use vim just for taking notes. Now I'm trying to use the Vimwiki plugin.
It allows creating a daily entry. If we type the command <Leader>w<Leader>w, the diary-...
1
vote
1
answer
347
views
<C-space> doesn't work in neovim in PowerShell in Windows terminal
everyone!
I’m configuring neovim for “Windows terminal”. And I installed the coc plugin. And I would like to use for triggering suggestions like in VSC. But the problem is that in neovim doesn't ...
0
votes
2
answers
108
views
Retrieve git_main_branch in Neovim
So I have been getting very acquainted with Neovim/Spacevim lately, and it's freakin awesome!
I am in the process of setting up some personal keybindings and commands and what have you, and am ...
0
votes
1
answer
53
views
Is there any way to enclose a variable with print() statement or any function in vim especially using vim vs code extension
suppose I have a variable named
a_variable
is there a surround or some combination of keystrokes which will do
print(a_variable)
or
print("a_variable: ", a_variable)
when my cursor in on ...
0
votes
0
answers
182
views
can't use ccls language server with neovim native-lsp
everytime I include ccls to my lsp language servers list I end up with this error
I installed ccls with command: sudo pacman -S ccls
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/...
1
vote
0
answers
16
views
How to set to default "S" and "s" vim plugin key mappings inside VScode?
I tried deleting all shift+s and s keymaps that were default to VScode and it still didn't fix it.
Also there isn't another extension with the same key mappings.
0
votes
0
answers
284
views
How can I use neovim as a LaTeX editor on my windows machine?
I've recently starded using neovim for editing scripts and every day use. Since I write LaTeX stuff all the time, I tought it would increase my productivity switching to nvim as my main editor (I'm ...
2
votes
1
answer
42
views
Conflict between remaps using plugins
I am currently using the NERD commenter plugin to define certain mappings that allow me to comment/uncomment blocks of code. One of the default mappings is:
[count]<leader>c<space> ...
1
vote
2
answers
560
views
How to scroll the hover area in Vim when showing documentation with coc.nvim
I can use K to show the man pages in Vim before I install the coc.nvim. And when I using the coc.nvim to do the same thing, instead of man pages, the documentation was in a hover are. But sometimes, ...
-1
votes
1
answer
70
views
How I can delete the vertical bar in vim
I am trying to delete the vertical bar but I don't know what is the code in .vimrc I should disable to remove it.
0
votes
1
answer
137
views
Neovim gkeep plugin
I installed gkeep plugin for Neovim (https://github.com/stevearc/gkeep.nvim) and didn't like it. I removed it from my plugins (I use vim-plug) and run :PlugClean after that. But now I can't open ...
0
votes
0
answers
57
views
Using vimscript, how to know if a line's no has changed?
Question
When buffer contents have changed how do I know if a line, having say a line no of 100, has shifted to line no 104?
Note: Content of the line may change so can't track the line using search ...
0
votes
1
answer
101
views
neovim :PlugUpdate produces permission denied on all plugins
When entering in vim and then running :PlugUpdate all the plugins can't be updated because of the error
x <PLUGIN>: ...
-2
votes
1
answer
151
views
create syntax checker vim plugin for a new Programming language [closed]
I want to create a new vim syntax checker for a new programming language that is not used widely, first i tried to read the code of the follwing plugins neomake, syntastic
, and Ale in order to ...
-2
votes
1
answer
682
views
Unable to install plugins in vim via PlugInstall
I use windows. When I try to install nvim-comp using vim-plug it's giving me this error:
Cloning into 'C:\Users\ASUS\AppData\Local\nvim\plugged\nvim-comp'...
remote: Support for password ...
0
votes
1
answer
391
views
How to get Pylint to display code smells in coc.nvim ? (Refactor issues)
I'm using Coc with coc-pyright and as suggested in the documentation I edited my coc-settings.json to display :
{
"python.linting.pylintEnabled": true
}
Despite all of that, whenever I ...
0
votes
1
answer
121
views
How to prevent rust.vim plugin from automatically inserting closing angular bracket?
This question is the neovim version of this post.
After I installed rust.vim, when I type <, neovim automatically inserts closing angular bracket >. This might be useful for some people, but I ...
-1
votes
1
answer
40
views
Why :redraw! not take effect in augroup?
I use Vim-Airline plug in Vim, but statuline incomplete display after source .vimrc, so I want use :redraw! in augroup but it not take effect.
augroup Vim
autocmd!
autocmd BufWritePost $MYVIMRC ++...
0
votes
1
answer
53
views
Text showing misaligned in Vim vs Cat
I've been using vim for a few weeks, and so far I've downloaded a few plugins including airline, nerdtree, and a colorscheme. When I downloaded some files with wget, I noticed that they weren't ...
1
vote
2
answers
51
views
Where is `filetype plugin` defined and how to override it?
I am trying set python indentation to use 2 spaces instead of 4 (or 8) spaces. I put the following in my ~/.vimrc:
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
This works well, as ...
0
votes
0
answers
19
views
Folding not working in all windows when openining multiple latex windows
If I open a latex file in vim (vim in Ubuntu 20.04 with latex-suite) it is folded correctly.
On the contrary, if I open more than one file at once, then only the first file is folded correctly whereas ...
1
vote
1
answer
160
views
How to allow vim ctrlp plugin to find files that start with dot
I want to be able to ctrlp into .gitignore and .circleci/ etc and I can't figure out what's preventing me from opening files that start with a . I've tried disabling all customizations for ctrlp and ...
0
votes
0
answers
191
views
How to customize vim plugin on nixos?
I want to build the leaderf plugin's c extension for my neovim on nixos.
The c extension could be built by running ./install.sh in the leaderf directory.
I see lots of vim plugins use buildPhase to do ...
0
votes
0
answers
24
views
How to use gutentags across multiple git repos (in a big project like repo)?
When I use gutentags as an extension of gtags in vim, it works well to generate the tag files for git repo. Of course I defined g:gutentags_project_root in vimrc:
let g:gutentags_project_root = [ '....
0
votes
1
answer
102
views
How to disable/remove ctags from vim
I don't how to remove ctags from vim. Each time I type 'Ctrl+]' it tries to find the tags. I want to map this key for other usage. How can I do it?
-1
votes
1
answer
153
views
I installed coc-snippets for my vim, but it has an error on execute python file
I am trying to use the coc-snippets for my vim, but it has a warning every time I start it, the snippets are working but just want to disable the warning, I set the coc warning disabled already. I am ...
1
vote
1
answer
245
views
Colorscheme in nvim won't save
So im like new to linux, just downloaded Pop!_OS and i installed Neovim, i installed Vim-Plug and added a colorscheme, i saved it and ran the file, the theme works, but whenever i close out of nvim ...