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
19
votes
11 answers

Neovim error: E492: Not an editor command: PlugInstall

OS: Ubuntu 18.04.3 LTS I just installed neovim using sudo apt-get install neovim and added the folder and file ~/.config/nvim/vim.init. At this moment the file has no content, but when I open up nvim and type :PlugInstall I get error: E492: Not an…
robtot
  • 863
  • 1
  • 9
  • 31
19
votes
4 answers

NeoVIm does not automatically load ~/.nvimrc file

I was looking to get into learning a text editor for programming. However, I've quickly run into a little snag that I can't seem to find a solution to. I have modified my /home/user/.nvimrc file to add some plugins and I can load it using :source…
J. Doe
  • 191
  • 1
  • 1
  • 3
18
votes
3 answers

How to get the current buffer file path using the Neovim Lua API?

I am using Neovim 0.5 and want to write a custom function to use with telescope.nvim. I need to get the path of the file loaded in the current buffer before I can execute the function. I have been unable to find how to do this after reading the…
Smit Patel
  • 181
  • 1
  • 1
  • 3
18
votes
7 answers

How can I source files relative to file?

I'm trying to split my vimrc up into multiple files - init.vim, keybindings.vim, ui.vim, etc. - but I can't get Vim to source files relative to init.vim (it instead sources relative to where I launch Vim from. This is what I've got at the top of…
dontexist
  • 5,252
  • 4
  • 27
  • 51
17
votes
3 answers

Is there a neovim version of vimdiff

I've started using nvim (neovim) recently. It generally works well, but when I run vimdiff, I noticed that I got the startup errors I got when I ran regular vim. I've fixed those so that both vim and nvim run without errors on my system, so vimdiff…
firebush
  • 5,180
  • 4
  • 34
  • 45
17
votes
5 answers

Is there "includePath" option in clangd?

I used to work with VSCode C/C++ extension. there was a feature in this extension(in a json file), called "includePath", which I could set the paths for my headers, so without execution of CMake or make, I would have the suggestion of my headers and…
AMIR REZA SADEQI
  • 409
  • 2
  • 5
  • 13
17
votes
6 answers

Neovim colorscheme does not look right when using nvim inside tmux

I'm trying to use vim-material theme from https://github.com/kaicataldo/material.vim Below is what happens when i run neovim in tmux Below is what it should look like What i've tried so far: in my .tmux.conf I tried both set -g default-terminal…
Gene Sy
  • 1,325
  • 2
  • 10
  • 17
17
votes
4 answers

How can I paste NeoVim registers in terminal mode?

When using NeoVim's :terminal feature, I'd like to be able to paste text from a register. When working with a standard text buffer, I frequently use two methods to paste text from a register: in Normal mode: "{register}p in Insert mode:…
nelstrom
  • 18,802
  • 13
  • 54
  • 70
15
votes
2 answers

Nvim lsp - change lspconfig diagnostic message location

i ran into a problem, when im using neovim (+ lspconfig with hie set up), i have diagnostics info inline, but sometime, i cant read the whole line: is there a way for me to see the whole message? i searched on the net to find a way to put the…
Nathan
  • 493
  • 1
  • 3
  • 13
14
votes
5 answers

How to fix nvchad not displaying icons

I installed neovim from github , i specifically have the 0.7 version ,and then i clonned the nvchad repository https://github.com/NvChad/NvChad in ~/.config/nvim as stated in the installation tutorial , after that I used this comand: nvim -c…
hacker man
  • 183
  • 1
  • 1
  • 8
14
votes
0 answers

Language Server in docker container

I'm not sure if the title suites my question that well but I couldn't come up with a better one. As I'm running Arch Linux but develop software (in C++) which has to run on Debian and Ubuntu I'm currently on the following setup. I have neovim…
Andreas Ziegler
  • 347
  • 2
  • 12
14
votes
3 answers

Setting autoindentation to spaces in neovim?

I was wondering how I could set the autoindentation to four spaces upon startup in neovim, because I use spaces for indentation. Thanks in advance.
Di W.
  • 175
  • 1
  • 1
  • 8
14
votes
1 answer

Vim: How to open new vertical split for file under cursor

I know gf opens the file under cursor, and CTRL-w f opens the file under cursor in a new split window. I'm probably being greedy but, how do you open it in a new vertical window?
Dunctem
  • 317
  • 2
  • 12
14
votes
2 answers

Open vim (or editor of your choice) in nodejs REPL editor mode

As of nodejs 6.6.0, when using the nodejs REPL you can enter multiline text in the terminal with: .editor I would like the nodejs REPL to open an instance of vim (in the same manner that git does when prompting for commit information) so that I can…
user3751385
  • 3,752
  • 2
  • 24
  • 24
13
votes
1 answer

How can I reload my Neovim config written in lua with a shortcut?

I want to reload my neovim configuration files with just a couple of keystrokes instead of having to restart the app. I was able to do this when using an init.vim with the following command: nnoremap sv source $MYVIMRC $MYVIMRC…
alexfertel
  • 925
  • 1
  • 9
  • 22