All Questions

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

How to change the inlay_hints position on Neovim 0.10.0?

On NVIM v0.10.0 inlay_hints are shown on inline, which changes the code visual and make lines longer. How to change inlay_hints to show end-of-line instead in-line? Actual: Expected:
Niamotullah's user avatar
1 vote
1 answer
38 views

No syntax in help files (how to debug?)

Suddenly, it seems that I have no syntax in my help files. I do have help in Neovim\share\nvim\runtime\syntax , and &ft is help. Not sure how to debug it.
eyal karni's user avatar
  • 1,136
0 votes
1 answer
37 views

<CR> behavior unexpectedly changed in normal mode

I recently made a bunch of changes to my vim configs and I later noticed that the enter/<CR> behavior on normal mode has changed. I used to be able to select and execute a line in the command ...
Daniel Baulig's user avatar
0 votes
1 answer
27 views

Why and How to Solve Vim and Gvim Not Listing Content of Specific Folders on Windows 11?

So, I installed Vim 9.1, latest stable version and I'm having some problem in opening a project folder. What's happening is that when I try to open the folder that contains the .cs file, the Netrw ...
Desenplays's user avatar
0 votes
2 answers
36 views

Any commands to switch to the window on the far left or right?

Let's say I have a grid of 3x2 windows open and I am focused on the bottom right one. I want to switch to the one on the bottom left with one command, not move left twice. Vice versa as well. There's &...
Oneechan69's user avatar
1 vote
2 answers
50 views

Check if there are non-empty or named buffers open

When closing Neovim, I'd like to store the session, but only if there are any files open. If I only have the dashboard open, or an empty unsaved buffer, I want to skip this step. So, I need a way to ...
ElRudi's user avatar
  • 181
1 vote
0 answers
100 views

How to show pretty undercurl in Neovim in tmux?

steps to reproduce: open new iTerm2 window (no Tmux) run echo "rong;" | nvim --clean +"set spell" - notice the word is underlined with a curly line open new tmux pane repeat ...
Max Coplan's user avatar
0 votes
1 answer
14 views

Convert vimwiki_diary_months to lua

How do you set g.vimwiki_diary_months in lua? According to :h g.vimwiki_diary_months: *g:vimwiki_diary_months* It is a |Dictionary| with the numbers of months and corresponding names. Diary uses it. ...
Ludenticus's user avatar
2 votes
1 answer
162 views

How to split strings that contain ^M^@ characters?

I am working with gvim on WSL2 on Windows 10 and I receive strings of the form: some_text^M^@some_other_text^M^@more_text when I use split(message, '\r'), where message is a variable containing the ...
Barzi2001's user avatar
  • 640
0 votes
1 answer
21 views

How do I pass on the "max-len" configuration parameter to ESLint?

How do I tell eslint in my neovim config to limit line lengths? I think this is the max-len parameter, but where do I put it in the config? Here's my eslint config: eslint = { on_attach = ...
quant's user avatar
  • 105
2 votes
1 answer
132 views

Neovim: Is there any way to silence lsp/diagnostics messages by regex?

Jumping to the solution, I know, apologies. Context: I work on a large Django code base where mypy is too slow to be usable, so I use pyright, which is fast enough but can't handle some of the Django ...
hwjp's user avatar
  • 121
0 votes
1 answer
54 views

Vim: move in the INSERT mode between lines using left/right arrow keys

In Vim while in the INSERT mode, I would like to be able to move between lines using the left and right arrow keys. For example, if the cursor is at the beginning of a line and I press the left arrow ...
nvx's user avatar
  • 9
0 votes
0 answers
26 views

Creates new file when run as root instead of opening it

I cannot edit files when VIM is run as root. Why? Here's a file which contains 123 on the first line and nothing else: File opened as root: Typed in listen as root: I am confident that VIM has not ...
viator's user avatar
  • 1
2 votes
1 answer
47 views

Is it posible to disable replacing "%" to the current file in commands?

I'm using a command to transform an URL to another form in my text_file: :r! my_command 'https://example.fqdn.com/path%20with%20loads%20of%20spaces' The problem is that every % char is converted into ...
xihh's user avatar
  • 25
1 vote
4 answers
268 views

Double numbers on all matching lines containing text pattern

Is there an easy way to search for all lines matching a pattern, extracting a number on the line, and modifying it? I am playing around with a game config file and want to double all of the XP numbers ...
NewUser's user avatar
  • 93
0 votes
0 answers
21 views

How to have Lexplore *really* toggle?

Starting with the fact that calling :Lexplore over an over works fine and it "toggles" on and off as most people would assume When I start B Vim by opening a directory, :Lexplore will show a ...
gcb's user avatar
  • 121
1 vote
1 answer
15 views

Paste and enter insert mode at the beginning of line, terminal bash Lunarvim

When editing a text file, p and I pastes what I copied and gets me to enter insert mode at the beginning of line. But in terminal (executed by term bash) this not works. p pastes somthing, but I or i ...
Crispy13's user avatar
  • 113
1 vote
1 answer
42 views

Show only 1 line from the prior screenful?

How may I tweak the Vim <C-F> command to show only 1 line from the prior screenful? Well I tried to map a normal mode command that scrolls forward by 1 line less than the number of lines in the ...
gregrwm's user avatar
  • 13
0 votes
0 answers
19 views

Spellcheck dictionary entries from custom (fake) regions

In my ~/.vim/spell/en.utf-8.add file, I've been adding fake language regions (like en_0l) to account for my various interests without muddying them across spaces. Atop this file, I have a line like /...
Adam Katz's user avatar
  • 117
1 vote
0 answers
18 views

NeoVim Groovylsp [closed]

Is groovylsp available on Windows? I use with mason and mason-lspconfig and groovyls, but I don't get autocompletion.
Ikropka's user avatar
  • 11
1 vote
1 answer
50 views

Paste in front or after in visual-block mode?

I can enter visual-block mode using <C-v>, move down a couple of rows by pressing j several times, then paste some content from the registry via pressing p or P. However, the pasting will ...
athos's user avatar
  • 207
0 votes
1 answer
52 views

How to let `g:python3_host_prog` read the python path dynamically via `command -v python3` in Neovim?

I'm using python venv to manage my local pip packages. I'd want to let g:python3_host_prog read the result of shell command line command -v python3 dynamically when venv enabled/disabled in Neovim. ...
Marslo's user avatar
  • 133
0 votes
1 answer
31 views

Get relevant script for (all) mappings

vim.api.nvim_get_keymap('n') does return a table with lnum (line number) , but not with the name of the script that set it (or path). I only know that verbose nmap .. does it, but prefer to avoid it (...
eyal karni's user avatar
  • 1,136
0 votes
0 answers
46 views

clientserver not working

I compile Vim 9.1 with +clientserver and +xterm-clipperboard, and they appear in :version. However, the related commands like servername, remote_expr do not exist. When running vim --serverlist gives ...
di bao's user avatar
  • 21
0 votes
0 answers
24 views

Is there an equivalent of system() for capturing commands outputs or programs running in terminal buffers?

I am aware that system() capture the output of shell commands. I am wondering if there is a similar command for capturing the output of commands sent to other type of interpreters running in terminal ...
Barzi2001's user avatar
  • 640
0 votes
1 answer
66 views

Any Neovim plugins for formatting Markdown text? [closed]

I started learning Vim because I spend too much time formatting text right in Markdown editors. Vim motions help a lot with that, but I still want hotkeys or motions to format text in markdown to bold ...
Oneechan69's user avatar
0 votes
2 answers
36 views

Select current Line from normal mode without changing cursor position AND without selecting the new line character at the end

What I am asking about can be done using multiple ways but none of them fully achieves what I want. For an instance : 0vg_ selects the current line without the new line character at the end but ...
pic810's user avatar
  • 1
1 vote
1 answer
96 views

How can I remap jump-motions in Vim?

In my neovim setup, I am using Tab to cycle forward and Shift-Tab cycle backward through my open buffers (using bufferline.nvim plugin). Because in Vim, Tab and Ctrl-I are same, I am not able to find ...
Lone Wolf's user avatar
0 votes
0 answers
14 views

Is there a way to define a "toggle breakpoint" mapping in termdebug?

How to implement a there_is_a_breakpoint_on_this_line condition to be used in the following if-then-else block in termdebug? if there_is_a_breakpoint_on_this_line <cmd>Clear else <cmd&...
Barzi2001's user avatar
  • 640
0 votes
1 answer
51 views

Is it possible to run a command on a specific buffer without switching to it?

A command to run on a buffer given its number or titled printed in :ls. This doesn't seem to be possible with :bufdo.
Oneechan69's user avatar
0 votes
1 answer
33 views

How to define termdebug mappings?

By default, termdebug has K mapped to :Evaluate. I want to extend the mappings in the following way: CC mapped to :Continue B mapped to :Break C mapped to :Clear Such mappings shall apply only during ...
Barzi2001's user avatar
  • 640
0 votes
0 answers
27 views

Is it possible to run LSP diagnostics across the whole worksapce?

My LSP config works perfectly for the current buffer, but sometimes I just want to check the whole project and find all problems. I know that folke/trouble.nvim could show workspace diagnostics, but ...
user3091821's user avatar
1 vote
0 answers
59 views

Is there any "minimalist" GVim (or any GUI-based Vim) distribution for Windows?

I'm currently working on a simple WPF (Windows) application that employs GVim as an embedded text editor. The application is supposed to embed GVim into itself as follows (although it's mostly ...
Sad Lame Developer's user avatar
0 votes
1 answer
31 views

Why does :bd closes tabs instead of buffers?

I am using Neovide and I just don't understand. Maybe I am missing something about buffers? I just want to get rid of annoying empty buffers or old buffers that I don't use anymore. Only in the ...
samuelnihoul's user avatar
0 votes
2 answers
36 views

How can I create a new vsplit to the left of the topmost window with the same height with only commands?

Let's say I have two windows on the top and bottom, full width. I want to create a new window to the left of the top one and the same height. If there are two windows on the top taking up half width ...
Oneechan69's user avatar
2 votes
3 answers
76 views

LaTeX with UltiSnips: How to automatically insert backslash in front of every math variable?

I use LaTeX inside Vim with Vim-tex and Ultisnips. The majority of my snippets are those created by Gilles Castel. In one of his snippets, he writes the following: priority 200 context "math()&...
Ian McGettigan's user avatar
1 vote
1 answer
35 views

How to make an user-defined command that is repeatable with . operator

I've been trying to make a dot-repeatable (.) command that should work in both visual and normal mode. The command in question searches for a [] on a line and turns it into a [x], and vise versa. It ...
melvio's user avatar
  • 617
1 vote
1 answer
90 views

Neovim: with auto-session, how can I restore Neotree's position to where it was before closing Neovim?

I have no idea what I'm doing, When I just have nvim and Auto session setup individually and I quit Neovim, auto session restores a blank window in place of Neotree. I have this snippet in my init.lua ...
Oneechan69's user avatar
1 vote
2 answers
177 views

Can I open Neotree in the current window instead of a in a new one?

When I do a command like :Neotree reveal it opens it in a new window on the left, when I want to it to show in the current window and hide the buffer that was there.
Oneechan69's user avatar
1 vote
1 answer
35 views

Is there an option for setting undo files' extension, similar to the one for backups?

For backup files, there's the option backupext for changing the extension of backups from filename.ext~ to (for example) filename.ext.bak by using set backupext=.bak in a vimrc file. Is there a ...
thruse's user avatar
  • 25
0 votes
1 answer
23 views

Setting "g:jedi#use_tabs_not_buffers" option in lazy.nvim in lua

I've started recently to use lazy.nvim to load plugins. I'm also trying to move the configuration from vimscript to lua, as well. Most changes seem to be straightforward, but there's one that I am not ...
Jir's user avatar
  • 103
0 votes
2 answers
30 views

<c-n><c-p> start to scan tags in insert mode whereas I just want to complete with existing words in the buffer

I found this issue while editing my .vimrc. I tried to do the same in other files, such as .txt and .sh with no problems. While in insert mode, I use <c-p> for completing words that are in the ...
Barzi2001's user avatar
  • 640
2 votes
1 answer
70 views

Trying to create syntax checking for Perl

I would like to have a quick way to check the syntax of the current Perl file. Suppose we have following incorrect file: #!/usr/bin/perl sub aaa { dfgdf dfgdfg if ) {} sub bbb { } ...
user4035's user avatar
  • 179
1 vote
2 answers
74 views

Is there a vimscript command equivalent to ya"?

Depending on the settings, if I ya" then I yank all the text between two double-quotes (including the double quotes). I am wondering how to create a function with a similar effect, namely a ...
Barzi2001's user avatar
  • 640
-1 votes
3 answers
134 views

Problem using the edit command in a function defined in vimrc

I am attempting to write a vim function that I would like to be loaded automatically when vim starts, thus I am putting it in my vimrc (but maybe that is wrong?). When called during normal editing, it ...
efru's user avatar
  • 13
0 votes
0 answers
32 views

Neovim: override Treesitter spelling settings

I'm coding in Neovim in a programming language that gets highlighting from Treesitter. This means the regions that are spellchecked are also controlled by Treesitter. I want to have more than just ...
tma_1's user avatar
  • 1
1 vote
1 answer
29 views

Very slow file operations by GVim on Windows shares

tldr: I have read and followed https://stackoverflow.com/questions/2103968/gvim-runs-very-slowly-when-editing-files-on-a-windows-share but none of the suggestions worked. I've been using Vim 8.1 on ...
musbur's user avatar
  • 121
0 votes
1 answer
43 views

When text is selected in Neovim on macOS, that selection isn't added to the primary clipboard. Can it be?

When using neovim on macOS (at least macOS), text that is selected isn't automatically added to the primary selection for the operating system. One must use the terminal's selection utilities, or yank ...
theherk's user avatar
  • 133
0 votes
1 answer
48 views

Neovim blocks kitty select to copy and click on url to open with mouse

Kitty has configuration like opening a url in browser when it is clicked and copying text selected with a mouse to clipboard automatically. This works on Vim but does not work in Neovim. How can these ...
rkochar's user avatar
  • 103
0 votes
0 answers
25 views

abbreviation stops expanding with "/"

The following problem with ab is seriously annoying me (seems to have started with vim 9.1): In my .vimrc, I have ab FF ftp://test.com/www. This will usually be expanded with e.g. / when I type the ...
ajo's user avatar
  • 123

15 30 50 per page