Questions tagged [neovim]

Neovim is a fork of Vim that aims to improve upon Vim's out-of-the-box experience and allow for more powerful plugins and GUIs.

Neovim is a refactor, and sometimes redactor, in the tradition of Vim. It is not a rewrite but a continuation and extension of Vim. Many clones and derivatives exist, some very clever, but none are Vim. Neovim is built for users who want the good parts of Vim, and more.

Goals

  • Enable new contributors, remove barriers to entry.
  • Unblock plugin authors.
  • Deliver a first-class Lua/LuaJIT scripting alternative to Vimscript.
  • Target all platforms supported by libuv.
  • Leverage ongoing Vim development.
  • Optimize out of the box, for new users but especially regular users.
  • Deliver consistent cross-platform experience.
  • In matters of taste/ambiguity, favor tradition/compatibility...
  • ... but prefer usability if the benefits are extreme.

Non-goals

  • Vim9script (or anything later than Vimscript v1)
  • Turn Vim into an IDE
  • Limit third-party applications (such as IDEs!) built with Neovim
  • Deprecate Vimscript
  • POSIX vi-compatibility

Resources:

1852 questions
0
votes
2 answers

How to search for all occurrences of the string `**` in a file using vim?

How to search for ** in a file using vim like **kwargs , when I use a /** it highlights the entire file.
codehia
  • 124
  • 2
  • 4
  • 16
0
votes
0 answers

How can I set terminal-local options in neovim?

I found that if I run :set nonumber in terminal buffer, the option only applies to that terminal buffer, not window I run the command. Neovim's help doc says that 'number' is a window-local option, But it doesn't seem right when dealing with…
Seongmin Lee
  • 43
  • 2
  • 7
0
votes
1 answer

How do I use `nvim -e file -c` command in normal mode using variables?

I've got a config file that I want to manipulate from this.. Input file ["12000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx12000",["127.0.0.1:12000"]] ..to the following: Output file [ …
Folaht
  • 1,053
  • 1
  • 13
  • 32
0
votes
1 answer

Nvim indentation settings work in C/C++-like languages whereas python seems to be taking default settings

I've recently gotten into Nvim, and I've noticed that in C/C++-like languages, auto-indentation and tabstop work perfectly fine, but in python, it's completely different and works like nothing I've configured. (The top is python, the bottom is…
paxous
  • 119
  • 10
0
votes
4 answers

How to remove word in a visual selection in Vim

Suppose I have the following input as shown below. What I would like to do is to visually select lines 2 through 4 (shift + v) and then delete the word dog. How can I do that? I know I can use something like :s/dog// on my selection, but I was…
Rod Elias
  • 706
  • 6
  • 14
0
votes
1 answer

Neovim and telescope:find files with two strings

I am using telescope with Neovim to find files quickly. However, when I try to input two search strings seperate by space, telescope does not list any files. How can I search for files with two individual substrings in their path?
Cactus
  • 864
  • 1
  • 17
  • 44
0
votes
0 answers

Nvim-cmp not working from neovim start-up

I have upgraded to neovim 0.7.0 but I am experiencing some odd issues with nvim-cmp I have cmp.lua file that starts with local cmp_status_ok, cmp = pcall(require, "cmp") if not cmp_status_ok then return end and then the settings from the nvim-cmp…
Mike
  • 3,775
  • 8
  • 39
  • 79
0
votes
1 answer

Special character bindings stopped working after some update

I was trying to add a pluggin to my nvim when I strarted fixing my :checkhealth I ran few commands: pip3 install pynvim yarn global add neovim npm install -g neovim gem install neovim gem environment Then, I noticed few binding were not working…
DiantArts
  • 104
  • 7
0
votes
1 answer

How do you create a symlink in pure Vimscript?

How does someone create a symlink in pure VimScript?
0
votes
1 answer

stdio.h and FPU errors in Neovim using clangd LSP

I have a stm32f103 project that is initialized using stm32cubemx and I'm using neovim for editing and arm-none-eabi-gcc for compilation of code (whit auto-generated makefile). I also have installed clangd LSP and also bear to generate…
mehdi
  • 167
  • 11
0
votes
0 answers

Referencing a vim.g variable in the same function it was declared in

I've been working on a plugin that lets you customize your color scheme based on the color values you provide. I've been stuck on a bug for two days now and was wondering if anyone has run into this issue In my setup function I declare vim.g.black_3…
0
votes
0 answers

coc.nvim throwing error on startup of nvim after update "E15: Invalid expression: exists('g:did_coc_loaded') || v:version < 800^M"

I don't know what happened here, but before I did 'PlugInstall' everything was fine. now I'm getting this when starting up nvim: Error detected while processing /home/rcrod/.vim/plugged/coc.nvim/plugin/coc.vim: line 2: E15: Invalid expression:…
rodelcabs
  • 52
  • 4
0
votes
1 answer

Using neovim, clangd and coc.nvim, why am I getting format: "hello, world" beside printf, and how do I turn this off?

Image of the code and the format: "hello, world" beside printf Does anyone know how to disable this?
user19223163
  • 1
  • 1
  • 1
0
votes
1 answer

Nvim-tree not showing file specific icons

I am following C@M (nvim-from-scrach). Installed Nvim tree, Installed Jetbrains Nerd font. Installed nvim-web-devicons. But i am not getting file specific icons in Nvim-tree. Its just showing default icons for *.lua files. In-File icons are showing…
Tickler_
  • 9
  • 1
  • 2
0
votes
1 answer

How do I indicate that there are available code / hover actions in the sign column of NeoVim

I am using rust-tools and everything is working fine with inlay hints, diagnostics etc. The code actions are also working fine in that when I call the dialog on a line I get the options and can apply them just fine. The only issue is that I don't…
Dionysis
  • 804
  • 8
  • 25