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
6
votes
2 answers

How to configure clangd to find missing external header file?

I am a novice user of clang tools and I am learning c/c++. I have some code that is based on a framework that uses its data structure and build system ( OpenFOAM). I compiled the framework's libraries in a folder in home directory. This framework…
Ali
  • 366
  • 4
  • 11
6
votes
4 answers

How do I make NeoVim my default text/code editor?

Is there a way to make NeoVim as default text/code editor (without any bad side effects) ?Trust me, I looked to lots of StackOverflow question/answers and tried a few things but nothing worked for me. Note: I'm on macOS Big Sur (version 11.2.1).…
DGF
  • 330
  • 1
  • 4
  • 11
6
votes
0 answers

Vim: temporary normal mode while holding Alt in insert mode

I wonder if there's a way to make the Alt (or another key) work like Ctrl-o, but for as long as the key is pressed. For example, if you're in insert mode and want to move 10 lines down and 2 words forward, you could hold Alt, press 10jww and then…
Kauê Reis
  • 81
  • 5
6
votes
2 answers

Vim global variable check throws error in lua (neovim plugin development)

I'm trying write a neovim plugin using lua, when checking if a variable exists, lua throws an error like: Undefined variable: g:my_var Method 1: local function open_bmax_term() if (vim.api.nvim_eval("g:my_var")) then print('has the last…
Bmax
  • 590
  • 4
  • 11
  • 24
6
votes
5 answers

How to disable line numbers in neovim terminal?

I come with a question: How to disable line numbers on neovim terminal? I tried this: autocmd BufRead,Filetype term://* set nonu but this doesn't work. I use set number relativenumber in init.vim file. I tried nonumber, number!, but for terminal…
kocotian
  • 97
  • 1
  • 7
6
votes
2 answers

When brew does not have latest package version

How do I force brew to install latest version of neovim (ver 0.5.0) when brew's formula only has 0.4.3? I have tried: brew update brew upgrade neovim And it says: Warning: neovim 0.4.3 already installed I went brew's git repo and checked on neovim…
Mo Fatty
  • 317
  • 2
  • 8
6
votes
1 answer

How to page-up / page-down through vim terminal

I am new user to Vim and I want to use vim's embedded terminal (called by :term). Unfortunately, I cannot use this terminal as I want to. The Shift + PageUp / Shift + PageDown duo (to move up and down through logs) does not work. I tried to solve…
BlackHawk3
  • 339
  • 4
  • 10
6
votes
1 answer

Vim fugitive with neovim terminal emulator

I recently switched from vim to neovim, installing the vim-fugitive plugin. Before, running :Git rebase -i in vim bought up the interactive rebase window in a vim window which I could edit as I needed to, :x out of the window and the rebase would be…
dbatten
  • 437
  • 5
  • 18
6
votes
2 answers

configuration script init.lua for neovim instead of init.vim

As Lua is now built-in as of neovim 0.2 (https://github.com/neovim/neovim/wiki/FAQ), can one use a ~/.config/nvim/init.lua configuration file instead of init.vim? What would an example of init.lua look like? Because vimscript is driving me crazy.
Markus
  • 578
  • 6
  • 26
6
votes
1 answer

Manual completion with Ctrl-N in Deoplete

I installed deoplete and it works for me, however by default it opens a pop-up window whenever you type something. This is not desirable. I want pop-up to only show when I hit Ctrl+N. So I disable autocompletion: let b:deoplete_disable_auto_complete…
Michael Ivko
  • 1,232
  • 3
  • 13
  • 23
6
votes
2 answers

Unknown function: elm#FindRootDirectory

I'm getting this error message: Unknown function: elm#FindRootDirectory When I open an elm-file within neovim. I'm using ElmCast/elm-vim as a plugin to write elm code. I know I could simply remove this plugin but I want to use it. Also I figured out…
mstruebing
  • 1,674
  • 1
  • 16
  • 29
6
votes
1 answer

Is there a way of using my .vimrc when doing a git commit?

I have made my .vimrc fitting my needs in a quite cool way and I'm already really used to it. That's why I get always confused when my different shortcut and bindings don't work as they do in the git commit vim. Is there a way that this will use my…
jntme
  • 602
  • 1
  • 5
  • 18
6
votes
1 answer

How to debug `Error while processing function` in `vim` and `nvim`?

TL;DR How to find where exactly vim or nvim error started (which file?) when I'm interested in fixing the actual issue and not just removing the bad plugin? Anything better than strace and guesswork to find the error origin? Issue I often add a…
cprn
  • 1,561
  • 1
  • 19
  • 25
5
votes
1 answer

How to get all interfaces (or any tokens) in neovim LSP?

I'm trying to get all the interfaces from a given buffer. To do so, I want to get all the tokens and filter out everything except the interfaces. However, when I try to make a call to the LSP: I get nothing back. local bufnr =…
Tomasz Gałkowski
  • 1,841
  • 4
  • 24
  • 39
5
votes
1 answer

Why is Nvim default settings overriding my ftplugin settings? (Neovim)

When I open a PHP file, Neovim sets nosmartindent and indentexpr=GetPhpIndent(). This is a bummer, because GetPhpIndent() is completely broken and makes the editing experience a nightmare where I have to constantly fix the indentation of every line…
Hubro
  • 56,214
  • 69
  • 228
  • 381