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
1 answer

How to use a hyphen as the second character of a Vim-Plug plugin

In my init.vim file, I'm trying to load my default .vimrc from a github repo (so that I can load the same customization file from anywhere). However, the second character of my github username is a hyphen and when I try to include it in the string…
0
votes
0 answers

coc.nvim Error: Error on execute: pyx command, ultisnips feature of coc-snipets requires pyx support on vim

I am trying to install NVChad for neovim on my mac, but after installing python 2.7 and python3 and the install pip install pynvim and also pip3 install pynvim I still getting: [coc.nvim] Error: Error on execute: pyx command, ultisnips feature…
Jean
  • 5,201
  • 11
  • 51
  • 87
0
votes
1 answer

Use nVim as an editor for c# language version 10

I'm trying to configure nvim as an replacement for VSCode an VS2022. I've managed to make autocompletion to work, but it seems to be compiling my code using an older language version (I'm using language version 10), so my code it's been marked with…
JorgeFD
  • 21
  • 5
0
votes
0 answers

NixOS - Issue packaging neovim plugin from github

I'm trying to add a neovim plugin that doesn't exist in nixpkgs yet (modes.nvim), but having trouble getting it to work. I'm using NixOS 22.05, and Home Manager, and I am using the following to build this plugin: pkgs.vimUtils.buildVimPlugin { …
cameron1024
  • 9,083
  • 2
  • 16
  • 36
0
votes
1 answer

How to write a Render function into nvim to render .rmd

I have the following problem: I want to write a vim command to render the current (.rmd) file I'm working on. My attempt is the following: I put this into my init.lua vim.cmd('call nvim_create_user_command(\'Render\', \'! R -e…
alex
  • 89
  • 7
0
votes
2 answers

How to get current command register value/name in Vim?

Currently I have this mapping: nmap x :set opfunc=SpecialChangeg@ function! SpecialChange(type) silent exec 'normal! `[v`]"_dP' endfunction it helps me to substitute some value with the default register value. However, I want…
Oleg Baranovsky
  • 368
  • 5
  • 22
0
votes
0 answers

How to bring back ~ / tildes for the each none line in Neovim

I am using version Nvim0.7.0 and have some additional custom configuration that is setting the theme and etc. For some reason the config or the theme has overwritten the config that was given ~ for each blank lines and I can't bring back them with…
mergul
  • 19
  • 6
0
votes
0 answers

using program installed in WSL in windows

I have installed neovim using wsl Ubuntu-20.04. Is there a way to directly run neovim in windows, without installing it on windows.
0
votes
0 answers

Is Atom with Vim packages of VS STudio with VIM plugin for Mac better

I'm a VI user from long ago. I've been using Atom with ex-mode and vim-mode-plus packages for a few years now, but was thinking of switching to VS studio with the Vim plugin (and perhaps neovim). Has anyone tried both who could provide insights?…
gwhiz
  • 135
  • 9
0
votes
1 answer

How to enable emmet in .astro?

https://github.com/withastro/language-tools/tree/main/packages/language-server I have installed the language server above in neovim. The language server comes with emmet support, but I can't seem to get it to work. How can I enable emmet in .astro…
cusX
  • 470
  • 1
  • 6
  • 17
0
votes
1 answer

Set singlequotes Coc-prettier in neovim

Im new using neovim and Coc-prettier. I would like to know how I can configure it so that single quotes are placed when formatting the document. Thanks.
Yeom
  • 13
  • 3
0
votes
1 answer

Is there a way to add a command to neovim that can be called as `:command`?

What I would like to archieve is to be able to use :< shell command and add the output to the shell command to the cursor's position in neovim. It seems I could use :redir to archieve this functionality and wrap it in to a function. Is there a way…
xihh
  • 169
  • 2
  • 12
0
votes
0 answers

How do I silently open a new tab in netrw on vim?

let g:netrw_banner = 0 let g:netrw_liststyle = 4 let g:netrw_browse_split = 4 let g:netrw_altv = 1 let g:netrw_winsize = 15 nmap :Lexplore vertical resize 30 Right now, opens the files in a new tab which is what I like but…
Suikyoo
  • 1
  • 2
0
votes
1 answer

Tmux, Nvim or Windows Terminal puts some lines on the wrong pane

I've been using nVim and tmux for a while now, but recently I've been having some problems. I seem to be getting some weird artifacts across my IDE which usually involve misplaced or duplicated lines. Below, you can see an example of the…
Cal Courtney
  • 1,279
  • 2
  • 10
  • 22
0
votes
1 answer

Cannot access member for type tuple[Any, ...] using Pandas DataFrame itertuples (Pyright-langserver with Neovim 0.7)

I'm using the pyright-langserver with Neovim v0.7.0. It functions well, except I don't know how to correctly annotate the types in the following situation. import pandas as pd df = pd.DataFrame({'num_legs': [4, 2], 'num_wings': [0,…
Nick Reid
  • 91
  • 3