All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
8 views

Cypher syntax file asks about commentstring on open

I am using syntax highlighting on my Cypher scripts from https://github.com/memgraph/cypher.vim. (I would open an issue there but the project and its predecessor haven't been touched in 3 years.) ...
kjekk's user avatar
  • 21
0 votes
0 answers
5 views

Why nvim version number doesn't follows normal symantic version rules?

Some developers for unknown reasons afraid to use firest number in the symantic version. What is the sense to keep first major number always 0? For what feature needs? It must be increased when new ...
zdm's user avatar
  • 101
-2 votes
0 answers
13 views

Speed date format not working

From the readme of tpope's speeddating. Pressing 5<C-X> on the 03 in the first line below transforms it into the second: The action is repeated 5 times for me i.e. 5 is subtracted from the date....
rkochar's user avatar
  • 99
0 votes
0 answers
6 views

Listening for changes in the `inccommand=split` preview buffers

I'm attempting to write a small lua script that can track the changes in the inccommand=split preview window. In essence, I want to have some kind of programmatic notification when the preview list ...
ollien's user avatar
  • 101
1 vote
0 answers
22 views

Possible to use the 'comments' option to check if a line is commented?

I am looking for a way to check if a line is commented or not. It should not be a filetype specific but should be commonly usable for a lot of filetypes. Note that there are single-line and multi-line ...
Rick Howe's user avatar
  • 363
0 votes
1 answer
31 views

How can I make w and b act like W and B to navigate big words (space delimited words)?

I navigate by big words much more often would like to just type w and b instead of W and B every time. I wonder if Vim has a setting for this.
Oneechan69's user avatar
0 votes
1 answer
32 views

How to let buffer show relative path when splitting?

It seems to be a vanilla-vim issue as the same behaviour also appears when I'm in vim -u NONE. Basically if you open a file, for example vim src/vector.h, and then split it with :bel vip %:p:h/vector....
Andrew.Wolphoe's user avatar
1 vote
1 answer
38 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
26 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
28 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
12 views

Why and How to Solve Vim and Gvim Not Listening 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
30 views

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

lets say I have a grid of 3x2 windows open and 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
33 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
  • 113
1 vote
0 answers
25 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
12 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
157 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
  • 606
0 votes
1 answer
12 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
0 votes
2 answers
30 views

How to eliminate error message "Pattern not found: Tex_CompileRule_pdf" since adding Vim-Latex? [closed]

I recently decided to go all in with Vim (9.1 on MacOS) and LaTeX (1.10.0) and today I decided to address an annoying issue. When I launch a non-gui Vim session from the command line (either with no ...
RadlyEel's user avatar
  • 141
2 votes
1 answer
50 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
42 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
24 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
43 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
263 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
1 answer
29 views

Typescript LSP doesn't detect a missing import [closed]

I'm having trouble with my Neovim config. The LSP doesn't detect a missing import. In Vs Code I get the error: Cannot find name 'getAccessToken'.ts(2304) But in Neovim I don't get any error and I ...
Gerhard Just-Olsen's user avatar
0 votes
0 answers
15 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
  • 119
1 vote
1 answer
12 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
38 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
16 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
9 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
0 votes
0 answers
29 views

Paste in front or after in column mode?

I can enter column mode by <C-v> , moving down a couple of rows by pressing several times j, then paste some content from the registry via pressing p or P. However, the pasting will replacing ...
athos's user avatar
  • 195
0 votes
1 answer
26 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
28 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
43 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
22 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
  • 606
0 votes
1 answer
54 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
30 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
63 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
11 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
  • 606
0 votes
1 answer
38 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
20 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
  • 606
0 votes
0 answers
14 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
51 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
25 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
35 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
69 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
29 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
0 answers
33 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
77 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
31 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
  • 13
0 votes
1 answer
17 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

15 30 50 per page
1
2 3 4 5
292