Questions tagged [plugin]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Add a Semicolon Automatically in C With a Vim Plugin

I am a C programmer and I am looking for a plugin that automatically adds semicolons when necessary before writing changes to a file. For example, look at the following example. printf("%s\n"...
user avatar
1 vote
1 answer
49 views

nvim (plugged with coc, coc-clangd) is showing parameters for every function. How do disable it?

my nvim (plugged with coc + coc-clangd) is showing the paramters for every function, how do I disable it ? I'm using a common vimrc for vim and neovim, but this problem only happens in neovim. FILE *...
user avatar
  • 111
0 votes
0 answers
16 views

Is there a way to redefine options set in a lua setup{} call without calling setup again?

I'm trying to customize a plugin and I want to know if there's a way to just set a single option without calling setup, or to change an option after setup has been called. local actions = require('...
user avatar
  • 1
1 vote
1 answer
30 views

bind/map a call to win_gotoid with script level argument

I'm trying to set a nmap bind to make the focus change from Window B back to Window A. Both Window IDs are store at the script level: s:win_id_a and s:win_id_b. The current snippet I've is the ...
user avatar
2 votes
2 answers
49 views

Is there a plugin for saving/loading registers' contents to/from files in a convenient way?

tl;dr Is there a Vim plugin that allows me to save/load registers to/from files with minimal typing, preview of registers, and other amenities? Long version Vim has a lot of registers. However, the &...
user avatar
  • 1,670
0 votes
0 answers
142 views

How do I use github copilot in NvChad?

I've written the following in my custom folder, and I've run :PackerSync followed by :Copilot setup, but I get an error: E492: Not an editor command: Copilot setup. Do I need to clone github/copilot ...
user avatar
0 votes
0 answers
18 views

Managing a README.md and vim help for plugins [duplicate]

Is there a way to generate vim help files and a markdown readme for github from the same text file? Or what is the usual strategy for this? I'm maintaining a small plugin that is only used by like ...
user avatar
  • 467
0 votes
1 answer
18 views

AutoPairsDelete() noise with vim plugins

I have been a vim user for years... I recently added a lot of plugins (see my ~/.vimrc) and I keep hitting a problem where I type a word (in this case, a string called cisco) and vim a) sees an ...
user avatar
1 vote
1 answer
54 views

Is there a way to restore a previous version of file in vim

I had a swp file with old content, to which I restored and wasted much cleaning it. So I would like much such feature. Jetbrains's IDEs have feature local history: Which preserve history for ...
user avatar
1 vote
1 answer
224 views

Is it possible to execute Ex Commands (colon commands) in VimScript (vimrc/init.vim)?

First off, just an FYI: I am not that experienced with writing VimScript I have a plugin that I want to have enabled using its custom Ex command (:RainbowParentheses). Putting that inside my init.vim: ...
user avatar
0 votes
0 answers
53 views

Where should dein.toml be stored?

I'm installing nvim and I can't get :call dein#install() to find the dein.toml file. I am on OSX, nvim 0.7 Install path for dein is ~/.cache/dein, and nvim's init.vim is in ~/.config/nvim/init.vim. I ...
user avatar
0 votes
0 answers
33 views

How to split view all buffers in vim with equal distribution vertical horizontal

How can I split view all buffers in vim with a distribution between vertical and horizontal? Is there a plugin? I know how to make all buffers appear in either horizontal or vertical splits: :ball :...
user avatar
  • 11
0 votes
0 answers
11 views

How can I sync part of a DOC cross reference with another file?

Is there a way in Vim to sync part of the markdown DOC across multiple files? For example, I have a description of a project, and I have to insert it in other files. When the main description is ...
user avatar
1 vote
1 answer
18 views

Remove/hide control characters in the vim-fireplace preview window

When the vim-fireplace plugin prints an error stack into the preview window, it includes a bunch of control characters. Example: I tried set nolist but it had no effect. Does anyone know how to get ...
user avatar
1 vote
0 answers
42 views

Pasting via "p" not working in normal mode in Telescope

If I open Telescope for file or text search and switch to normal mode within the Telescope prompt and press p, nothing happens. Does anyone know how I can enable pasting via p in normal mode in ...
user avatar
  • 535
0 votes
1 answer
55 views

Why doesn't vim-sneak's label-mode work even after enabling it?

I wanted lightspeed-like features in Vim (without having to install Neovim). I installed vim-sneak and followed the directions to enable "label-mode": let g:sneak#label = 1 But when ...
user avatar
  • 5
1 vote
1 answer
45 views

Citations in VIM: the fzf-Bibtex PlugIn

I try to use the plugin fzf-Bibtex to insert citations in a scientific paper. I have installed all dependencies and plugins. These have been added to my .vimrc: Plug 'msprev/fzf-bibtex' Plug '...
user avatar
2 votes
0 answers
20 views

Plugin for tips on startup screen

Many of the IDEs I've tested throughout the years feature a sort of startup dialog, showing beginner to intermediate tips to become more proficient at it. While ways to customize Vim startup screen ...
user avatar
  • 121
4 votes
2 answers
65 views

Advice on the use of :exe "norm!" vs. built in functions when writing vimscipt and plugins

I've been using vim for about 3 years and am starting to write my first plugin. I've noticed when looking at the code of other popular plugins that the functions very rarely seem to achieve their aim ...
user avatar
  • 917
2 votes
0 answers
49 views

Make Lightspeed work with Repmo

I'm trying to make the EasyMotion-like (cursor jumping) Lightspeed plugin work with Repmo which repeats a previous motion. So far, (and after many hours), I've come up with the following: let g:...
user avatar
  • 2,281
2 votes
2 answers
219 views

how to navigate to a file or a function using neovim or vim?

All, I am pretty new to NeoVim or Vim and i have setup vim for scala development. Everything else seems to be working fine. The only hiccup i have is i am not able to navigate to a file or function. ...
user avatar
  • 123
7 votes
4 answers
669 views

Vim plugin where the first lines in the editor show the first line(s) with less indendation that are not visible

I would like to either find or write a plugin that does the following: Assume I have this python code: def foo(a,b,c): # comment [100 lines that do stuff] for i in range(N): [100 ...
user avatar
  • 269
0 votes
1 answer
79 views

Syntax highlighting with bogado/file-line and slim-template/vim-slim (e.g. when doing `vim app/views/sessions/new.html.slim:20`)

when I edit a slim file by line, e.g. vim app/views/sessions/new.html.slim:20 I don't get the syntax highlighting :(, other types of files work fine (e.g. ruby files). I use slim-template/vim-slim and ...
user avatar
  • 121
0 votes
0 answers
36 views

Problem using gdb with vim over ssh

I am using a raspberry pi zero over SSH using Putty in Windows 10 vim works normally most of the time, but when using gdb with vim (as explained in this answer) using :Termbdebug, if any errors ...
user avatar
  • 133
0 votes
0 answers
32 views

Is is possible to include other behaviour in a keymapping which would normally invoke a <Plug>?

I am working with a plugin which exposes mappings via <Plug>. For example, let's say it has a mapping for <Plug>XYZCommand. Then, I can put the following in my ~/.vimrc: nmap a <Plug>...
user avatar
0 votes
0 answers
15 views

When I run :LanguageToolCheck, the output is the java -jar command in a new buffer

I've been trying to utilize Vim to do more writing so I tried to install LanuageTool and a related vim plugin: https://github.com/dpelle/vim-LanguageTool/ However, even after specifying the location ...
user avatar
0 votes
1 answer
186 views

Vim editor entities tagging/annotation tool

I'm looking for a word/sentence annotation tool/plugin to be used INSIDE vim editor. Specifically I'm looking for a cli tool NER (named entity) tagging. Any idea/suggestion/tip? By example, I would ...
user avatar
0 votes
0 answers
32 views

Is there a plugin to show (maybe in the status line) the (unprocessed) keystrokes?

To understand what I'm referring about, think of screenkey. As for why I'd like such a plugin, here's a plugin of mine (well, my only plugin so far). As you can see there's a screencast to show the ...
user avatar
  • 1,670
0 votes
0 answers
49 views

Is there a way to disable plugins during macro recording and execution?

Is there a way I can disable specific (or all) plugins when recording a macro and then when playing back the macro? I've had an issue where a plugin that automatches ( with ) that stops a macro that ...
user avatar
0 votes
1 answer
53 views

Can you have relative numbers, but for characters/words in a line?

This is relativenumber. It shows the line numbers, relative to your cursor: 1 one line before your cursor 0 your cursor is here 1 first line after 2 second line 3 third line 4 and so on It's super ...
user avatar
1 vote
1 answer
24 views

vim logfile reviewer auto file follower

I am sure this has been solved, but I cannot find a matching question. I have a log file with the format: <LOG SEVERITY> <FILENAME> (<LINENO>) @<TIME> <MESSAGE> Where <...
user avatar
  • 11
0 votes
1 answer
59 views

Handling multifile projects using portable bookmarks

I am trying to manage multiple projects each with multiple files so: project1 ----src file1.cpp, ..., file10.cpp ----include incl1.h, ..., incl10....
user avatar
  • 165
0 votes
1 answer
369 views

Data storage for a plugin

I would like to make a plugin for Neovim that does some pretty expensive processing for a text in a file. I would need to keep processed data as well as a hash signature of a file (to avoid processing ...
user avatar
  • 135
2 votes
1 answer
47 views

Is there a plugin that comments by putting the comment symbol at the line beginning?

Consider the following snippet, def foo(): do_something() do_something_else() print('Hello!') return 0 is there a plugin able to comment it as illustrated below def foo(): ...
user avatar
5 votes
0 answers
155 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 ...
user avatar
  • 171
2 votes
0 answers
295 views

Does vim-easymotion only work in neovim?

I was wondering if the easymotion-overwin was compatible with vim, or does it only works in neovim? I have my .vimrc's keymaps setup like this for easy-motion "----- Easy-Motion ----- map <...
user avatar
  • 171
1 vote
0 answers
461 views

Autoloaded vs lua functions: which is faster/more efficient?

I'm creating a neovim plugin written in Lua, and I have to react to the BufAdd and BufUnload events with a function call. I have 3 options: write the function in Lua (like the rest of the plugin) and ...
user avatar
  • 149
0 votes
1 answer
214 views

Run a command that is from a plugin in a function

There is a file browser plugin called fern and I would like to open a split with the fern file system explorer open. This is what I have so far: function File_tree() execute 'vert sb' execute '...
user avatar
  • 115
0 votes
1 answer
357 views

pylint default filepath in ALE

I am trying to set up my pylintrc file in vim, but am having some difficulty getting it to read from the correct path. It seems to work when I have the file in the directory that contains the vim file ...
user avatar
  • 1,847
0 votes
0 answers
643 views

Getting Rust Language Server to work with vim

I'm trying to get tab completion support for rust programs in vim going. There are many descriptions on the net how to this and none of them work out-of-the-box in my environment. The first major ...
user avatar
  • 337
2 votes
0 answers
42 views

Tagbar with asciidoc doesn't work

I have problem with configuration the tagbar plugin in nvim for asciidoc. I don't see headers in tagbar's sidebar. I have universal ctags installed, when I run: ctags -R --languages=asciidoc --kinds-...
user avatar
0 votes
0 answers
149 views

inoremap doesn't work

Question summary Currently I'm writing a pull request for this vim plugin which should set commas and semicolons automatically. At the moment it looks if it should set a comma/semicolon/double point ...
user avatar
  • 446
0 votes
2 answers
60 views

template plugin? [closed]

do you have any simple and working template plugin to use for programming ? I have tried this but to be honest I didn't understand how to use it. I have found this but I didn't understand how to ...
user avatar
  • 111