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 can I create a local configs for Neovim extending the global init.vim?

Suppose that I have a map on my init.vim that I want to change the behaviour depending on the folder that I am. How could you do that? A more concrete example: I have a map on my F12 that runs the project that I am. So if I am on a python project,…
user3692586
  • 199
  • 1
  • 7
0
votes
0 answers

Is there an idiomatic way to structure a Lua project?

I'm creating a Neovim plugin in Lua and am looking for a reasonable way to structure my projects for testing, loading modules from Luarocks for development, and distributing this to users. For example, in a Javascript project it's common to see…
Chip Castle
  • 2,132
  • 3
  • 20
  • 34
0
votes
1 answer

Matching a string with vimscript that starts with _

I'm trying to conditionally load files in vim/neovim with Vimscript, except where the filename is prefixed with an underscore. It's not working 100% yet, instead all the files are still loading: for filename in…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
0
votes
0 answers

How to set Neovim to use the full width of the terminal?

I am trying to resize the Neovim terminal width such that it covers full with of my terminal, but it is not covering the full width. I have also changed the background of Neovim to my background of the terminal, but nothing happened. I have also…
0
votes
0 answers

Configure different file_ignore_patterns in telescope

I have a file (NAMESPACE), that I want to ignore during live_grep, but I want to show it with the file browser. Currently I have the following in my lua.init. require("telescope").setup{defaults = { file_ignore_patterns= {"**NAMESPACE",…
Sebastian
  • 865
  • 5
  • 13
0
votes
0 answers

Make Neovim to find a path without file extension

I'm working with JavaScript and Neovim. The problem I have is that Neovim needs a specific file extension at the end of the paths to be able to find them, otherwise it can't. So I was wondering if I could detect the file extension without explicitly…
Beicker
  • 1
  • 2
0
votes
1 answer

Neovim statusline show filename with minimal setup and without plugin?

I would like to configure neovim (0.7.0) with lua, without plugins. I've configured line number via vim.wo.number = true. I guess it would similarly works if I use vim.o.statusline = "%F" to let the statusline show file name / path. However, my…
ChrisZZ
  • 1,521
  • 2
  • 17
  • 24
0
votes
1 answer

How to concatenate strings to provide as input when calling the term command in neovim

I have the following example: autocmd FileType python nnoremap c :let python_file=expand('%:p'):term 'python ' . python_file This is an example script for running python code, however whenever I try to use this keybinding…
Ali Awan
  • 180
  • 10
0
votes
1 answer

nvim use defx instead of NerdTree

I would like to open nvim with defx by default instead of Nerdtree. Have no idea how to change that behaviour I am using defx and can open it through mapping with sf custom mapping command, but for that i should be already in nvim so it takes me …
Victor Orlyk
  • 1,454
  • 2
  • 15
  • 27
0
votes
2 answers

How to efficiently yank to system clipboard in WSL2 neovim?

I've installed win32yank through chocolatey and changed clipboard setting in init.vim: set clipboard=unnamedplus Everything works however I notice that copy and paste operations now have very slight but noticeable delay. Is there any alternative…
hmukos
  • 47
  • 6
0
votes
1 answer

nvim unexpected exit, looking for logs

Sometimes, when I am deleting some lines, such as 20dd or ddG, vim closes unexpectedly. I don't know why and I can't add more info because I don't know where to look at. Is there any kind of log? Regards
AssertionError
  • 136
  • 1
  • 10
0
votes
2 answers

Retrieve git_main_branch in Neovim

So I have been getting very acquainted with Neovim/Spacevim lately, and it's freakin awesome! I am in the process of setting up some personal keybindings and commands and what have you, and am currently working on Git stuff. Coming from using VSCode…
Lushmoney
  • 412
  • 11
  • 26
0
votes
1 answer

vim-plug not recognizing plugins?

I put this in my init.vim file, yet when I run :PlugInstall, vim-plug does not show any of those plugins. Am I doing something wrong, or is vim-plug not working? Thanks.
fartface87
  • 23
  • 3
0
votes
1 answer

Is there any way to enclose a variable with print() statement or any function in vim especially using vim vs code extension

suppose I have a variable named a_variable is there a surround or some combination of keystrokes which will do print(a_variable) or print("a_variable: ", a_variable) when my cursor in on the line where a_variable is defined ? I could not find…
Sanket Wagh
  • 156
  • 1
  • 14
0
votes
0 answers

Reuse old buffer for the same command in VIM for competitive programming

Recently I've been into VIM and had many attempts to use it for competitive programming. So I tried google stuffs for information and up until now I've gathered codes from other's .vimrc while avoid using plugins (for some specific reasons). So…
Airi
  • 29
  • 4
1 2 3
99
100