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
0 answers

Getting Server languageserver.ccls failed to start: error, when ever I open cpp file inside neovim

Server languageserver.ccls failed to start: Launching server "languageserver.ccls" using command ccls failed. I have installed coc-ccls, and I have pasted the below code inside the cocconfig file. { "languageserver": { "ccls": { …
0
votes
1 answer

PyLint not recognizing modules but code runs fine

I am using coc.nvim in neovim together with Pylint. If I try to import my own module e.g. src.reverse_linked_list or an installed module like selenium, CoC displays the error message [pylint E0401] [E] Unable to import 'xxxxx' (import-error) double…
manzosk3
  • 1
  • 3
0
votes
0 answers

abnormal behaviour of neovim with lsp clangd

this is my code that print hello world now if i use command Format that call vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]] my code will becames like this now strange symbols appear in the text clangd changes my text with ^M…
user16297678
0
votes
2 answers

Translate characters in vim like with tr

I want to translate characters in vim like with the command line tool tr or with sed: $ echo 'foo bar' | sed 'y/for/tes/' tee bas So I want to replace all occurrences of certain characters with other characters.
kefomo
  • 27
  • 5
0
votes
1 answer

"attempt to call global 'buf_set_keymap' ( a nil value)" when trying to load keymap for stylua-nvim

I'm trying to convert my init.vim over to lua. Also trying out "packer" plugin manager and using styua-nvim plugin to format lua code. Followed instructions for packer and got it installed and loaded stylua-nvim plugin with pakcer. Loaded stylua…
StevieD
  • 6,925
  • 2
  • 25
  • 45
0
votes
0 answers

Weird behaviour on neovim inside a tmux when writting yaml files

I have a weird behavior in neovim when editing a YAML file, but it only happens when I run it inside tmux. Given the file: foo: foo: value bar: value if I use tmux+nvim to edit the bar value to anything like value1, when I…
MagMax
  • 1,645
  • 2
  • 17
  • 26
0
votes
0 answers

Is it possible to map without releasing key in Neovim?

I want to make such an instruction nmap w WordMotion_w worked not only when I press + "w" at the same time but also when I hold down and press "w" several times. Is it possible?
0
votes
1 answer

How to use complex string command in init.vim

I have this string in init.vim: set background=white " FR! I want to bind this command to a keymap in init.vim (for find and replace text, that's why I use " FR!, to make sure it will not replace another line): :!sed -i 's/set background=white "…
ForteD
  • 41
  • 4
0
votes
2 answers

How to bind a luafunction to keypress in vim

I want to execute a imported function on a button click, but I get an error that its undefined. local LazyComp = require('plugins/LazyComp/LazyComp') vim.api.nvim_set_keymap('n', '', "LazyComp.getFile()", {expr = true, noremap = true})
0
votes
0 answers

PATH in subshell is different from PATH within environment

I am trying to compile a code from within neovim (using ':make'). But it turns out that neovim does not take into consideration the PATH variable with which neovim has been invoked - neovim uses instead the PATH variable that is set by the .tcshrc…
Pierre G.
  • 4,346
  • 1
  • 12
  • 25
0
votes
1 answer

How can I run a node app from the command line?

On RHEL I have put various executable files in ~/.local/bin eg. nvim.appimage. As ~/.local/bin is in my $PATH variable I can call nvim.appimage from any directory which is great. I want some node apps to be able to be called from any directory, for…
user3425506
  • 1,285
  • 1
  • 16
  • 26
0
votes
0 answers

How to trouble shoot alias in neovim setup

I am following this tutorial to use lua in setting up nvim as an IDE. I am using Mac Monterey (12.2) and Z shell. The install has a script, #!/usr/bin/sh NVIM_BEGINNER=~/.config/nvim-beginner export NVIM_BEGINNER rm -rf $NVIM_BEGINNER mkdir -p…
capnahab
  • 343
  • 3
  • 14
0
votes
1 answer

Selected lines with pattern: Vim Visual Mode

I would like to select (in Vim) the lines that start with the same pattern. For example, if I have this: if (...) { print "Accepted\n" o.attr_out = "Accepted"; } else if (...) { print "Partially accepted\n" o.attr_out = "Partially…
F A Fernández
  • 101
  • 1
  • 8
0
votes
1 answer

vimscript autocmd passing a argument to a function

I'm trying to run tags upon file save. But I can't get the current buffers name inside the function, I need this after the write, since I want ctags to process the new amendments. Ideally I want to pass the . argument into the function from the…
pepsi-maniac
  • 75
  • 1
  • 7
0
votes
1 answer

How to turn off automatic line splitting in vim?

I mainly use neovim and I found that setting :set textwidth=0 in ${HOME}/.config/nvim/init.vim has no effect.Textwidth is always 78. The reason is that other scripts overwrite my settings, I found textwidth=78 in other scripts: $ sudo find ! -path…
aszswaz
  • 609
  • 3
  • 10