Skip to main content

Questions tagged [nvim]

for questions specific (and unique) to the Neovim program. Questions about Vim in general should use [vim].

Filter by
Sorted by
Tagged with
-1 votes
1 answer
23 views

wezterm > tmux > nvim colors not forwarded through tmux correctly

I'm currently having the problem that the colors are not forwarded correctly from nvim through tmux to wezterm. I think tmux is to blame since the colors work like expected when I invoke nvim from ...
glades's user avatar
  • 99
0 votes
0 answers
34 views

(Linux, terminal, key mapping) 'Home' & 'End' key are not recognized in neovim built-in terminal-emulator

Previously I used vim editor for python, c++ code. As the code gets longer and complex, it is hard to write code without ide. So I installed neovim and the problem is 'home' and 'end' key doesn't ...
T.H. Kim's user avatar
1 vote
1 answer
736 views

How to install NeoVim v0.9.5 on Debian, by means of downloading the tarball file, unpacking it and running ./nvim-linux64/bin/nvim?

I'm asking this, because I need to install NeoVim from github to get the latest 0.9.5 version instead of the v0.7.something available via apt package manager. $ sudo apt list neovim Listing... Done ...
michal roesler's user avatar
0 votes
1 answer
82 views

yamlfix not using configuration + (neo)vim usage

I'm using yamlfix with ale in vim. I followed these steps because I wanted to remove the automatic "---" adding on top of the file every time I save my work (and some others default ...
Corentin Michel's user avatar
1 vote
0 answers
91 views

How to configure coc and nvim to sort react imports correcty?

I use nvim daily in conjunction with coc and it has been extremely more efficient than VS code, however, something that is done in vscode and I can't configure for when I use React is the import in ...
Hudson Ribeiro's user avatar
0 votes
0 answers
803 views

Setting indent blankline plugin in lua with custom options

I do not know how to write configs in lua. I am using neovim and my configartion is written in lua. I have few plugins and I use lazy nvim as my plugin manager. I have a seperate plugins directory ...
Muzzamil's user avatar
1 vote
1 answer
1k views

Colors different when running nvim through tmux using alacritty config

Background: I'm just setting up an install of Arcolinux. I have a keyboard shortcut SUPER+Enter to launch alacritty. What I want is to have alacritty automatically create and start in a new tmux ...
SwiftD's user avatar
  • 171
1 vote
1 answer
522 views

Just installed nvim 0.10 and can't find or open it

I installed nvim 0.9 from this site but I can't find or open it, if I try to use sudo dnf install neovim It says Package neovim-0.10.0~dev.361.ge3e6fadfd-500.fc36.x86_64 is already installed. but when ...
Emac342007's user avatar
0 votes
0 answers
72 views

piping text file contents with unsaved modifications to a command with the neovim interactive terminal emulator

I want to know if theres an equivalent to :w !cmd for the nvim terminal emulator. Like :te cat % | cmd is almost there but you would have to save the file before using it. Is there another way? Like ...
teo's user avatar
  • 1
1 vote
1 answer
343 views

How to detect the linux distribution name in Neovim init.lua

How can I detect in my neovim ~/.config/nvim/init.lua configuration which operating system distribution nvim is running? I want different Neovim configurations on debian servers as on my fedora linux ...
Simon Schürg's user avatar
0 votes
1 answer
1k views

treesitter Neovim plugin not working on nixos

I have installed home-manager in a flake as a module. The Flake and the Module are in /etc/nixos/. My Home manager File links to another file in which I configure neovim, this file is located in /etc/...
Zxmon's user avatar
  • 3
0 votes
1 answer
217 views

Installing Neovim v0.8.1 with Guix makes some treesitter parser unusuable because of GLIBCXX_3.4.29 not found

It seems that guix compile neovim with gcc 10.3 which does not come with GLIBCXX_3.4.29 (like described here). The exact error provided while opening neovim with an html file for example is : Error ...
ChillPC's user avatar
0 votes
1 answer
185 views

Neovim open file with search pattern not escaped?

I'm trying to run the command: nvim "./some-file" '+/Text (with/slash)' But I get the following error: Error detected while processing command line: E486: Pattern not found: Text (with And ...
Nate-Wilkins's user avatar
1 vote
1 answer
255 views

SetFileTypeSH missing

I try to edit a SH file but I always get an error opening: Error detected while processing BufReadPre Autocommands for "*": ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:171: ...
Sascha's user avatar
  • 245
0 votes
1 answer
189 views

vim colorscheme is overriding tmux code for changing active/inactive pane color

I have this code in .tmux.conf: set -g window-style 'fg=colour247,bg=colour234' set -g window-active-style 'fg=colour250,bg=black' It works and "dims" an inactive pane by making it appear ...
StevieD's user avatar
  • 945
0 votes
0 answers
437 views

How to make (neo)vim replace a selection with the clipboard?

Let's say I have "some example" text If I want to change the text inside quotes, and because I have set clipboard=unnamed¹ in my configuration, I have to "qci" then ⌘V. "q is ...
user137369's user avatar
1 vote
2 answers
2k views

Can't change Arch default editor

I want to set nvim(Neovim) as my default editor, I have tried to edit my .bashrc and add this two line: export EDITOR=nvim export VISUAL=nvim and then $ source .bashrc but it didn't work. Proof: $ ...
manungsa's user avatar
3 votes
2 answers
4k views

Error With gtk-launch: Unable to find terminal required for application

I tried to use the following command: gtk-launch nvim file.txt But it gave me this error: gtk-launch: error launching application: Unable to find terminal required for application How am I supposed ...
Amarakon's user avatar
  • 333
0 votes
0 answers
97 views

Why does Neovim behave differently from Geany when launched with nohup and &?

When I open Geany I need to launch it with nohup, e.g. nohup geany test.txt & so that when I close my shell, from which I launched it Geany does not get closed. I noticed that this is not the case ...
John Smith's user avatar
1 vote
0 answers
101 views

Only apply neovim rule to one folder

I have a notes folder that is also a git repo with an autocmd in my init.vim set to auto-commit to the repo every time the file gets saved. This behavior is undesirable in git repo folders with actual ...
belkarx's user avatar
  • 345
1 vote
1 answer
693 views

sudo vim and vim open different editors

I have just finished installing Fedora 36 and was in the process of installing my usual software. I personally prefer nvim over vim, but I got used to typing vim; so, I just use an alias alias vim='...
Mohamed Yasser's user avatar
2 votes
1 answer
180 views

Neovim(vim), resizes my splits after closing Nerdtree

I have some issue. I opened some files in vertical split, and resized it to work with it more comfortable. But when I'm opening and closing nerdtree, all my panes resized by default. Here is I'm ...
fanishe's user avatar
  • 31
0 votes
1 answer
4k views

How can I set NeoVim to automatically source .vimrc?

Each time I open NeoVim, I have to type :so .vimrc (it is located inside of my $HOME folder) for it to load the file. I've tried googling my way out of it, but I can't seem to get any results on what ...
telometto's user avatar
  • 2,055
0 votes
1 answer
390 views

Facing an error while installing npm for neovim coc

I have installed coc.nvim and am now installing the dependencies. To do this I need to install npm. The command I'm using to install npm is sudo apt-get install npm. However, I get this error when ...
callmetan7's user avatar
1 vote
1 answer
1k views

Why I cannot see and install the latest version of NeoVim 0.5?

I added and updated Debian's experimental distribution to my source list which should contain neovim 0.5.0-1. deb http://deb.debian.org/debian experimental main contrib non-free When I run apt-cache ...
Lajos's user avatar
  • 145
0 votes
0 answers
127 views

How to Migrate Neovim from Windows to Linux

This seems like a pretty simple question, but I can't find a solution. I have Neovim configuration on Windows with a custom init.vim as well as plugins and color schemes. I am able to get Neovim on ...
user avatar
5 votes
2 answers
1k views

Vim: run commands depending on file directory

In my init.vim, I want to run certain commands only if the current file is under a certain hierarchy. Pseudo-code: if current_file_directory == ~/some/path/here autocmd <whatever> set <...
user137369's user avatar
1 vote
0 answers
445 views

latest nvim error, Cannot execute binary file: Exec format error

I got this error when running neovim v0.5.0-dev+1308 (using the nvim.appimage) for the first time, I don't know what could it be or how to fix it, any help would be appreciated since I cannot use ...
Luis Carlos Cordero's user avatar
3 votes
1 answer
822 views

configure vim to use both tmux and system clipboard

I'm fairly new to vim (I'm using nvim) so forgive my lack of knowledge, many questions are similar to mine, but not quite the same. I would like this: vim by default should cut/copy to a buffer, not ...
5c0tt_b0t's user avatar
0 votes
1 answer
3k views

Ranger: set default apps for files

I use arch linux, ranger and nvim. When I try to open any text file, ranger does not do anything and this is on output: /bin/sh: line 1: vim: command not found What can i do to open file in neovim ?
Jan Černý's user avatar
  • 1,441
1 vote
1 answer
366 views

Vim/nvim <BS> and <C-w> delete entire line in (terminal mode from a command) instead of a single character

I'm creating a mapping which is supposed to navigate to a specific window (call TEST_WIN), focus in on the terminal and then delete a single character. The mapping looks like this: noremap '; :let ...
libby's user avatar
  • 111
0 votes
0 answers
670 views

Nvim: Warning: Cannot find word list "cz.utf-8.spl" or "cz.ascii.spl"

When I turn on spell checking for Czech language, this happens: :Sccz No spell file for "cz" in utf-8 Download it? Downloading cz.utf-8.spl... :!curl 'http://ftp.vim.org/pub/vim/runtime/...
Jan Černý's user avatar
  • 1,441
2 votes
1 answer
295 views

Linux mint man pages require sudo when pager is neovim

If I sudo man it works fine, otherwise I'm getting ~$ man ls fuse: mount failed: Permission denied Cannot mount AppImage, please check your FUSE setup. You might still be able to extract the contents ...
sudavid4's user avatar
  • 161
0 votes
1 answer
649 views

How to get my terminal to open NeoVim with maximised window size using Openbox rc.xml key bindings?

I am using Openbox 3.6.1 windowing with Arch 5.6.4, and NeoVim 0.4.3, with gnome-terminal 3.36.1. These are the most up to date versions. I am currently sizing my gnome-terminal window using these ...
Kes's user avatar
  • 859
3 votes
1 answer
2k views

How can I get vim to open with syntax highlighting for systemd unit files?

I use nvim as my main editor, and I run services using systemd. When I edit a unit file directly, there is a built in filetype for systemd, which is great. However, when I edit a service file with ...
jameh's user avatar
  • 251
1 vote
1 answer
2k views

nvim norm command

In neovim 0.4.3-3 in normal mode this command : :put=range(1,4) will put numbered list from 1 to 4 but when i want to put numbers only in blank lines like this: :g/^$/norm :put=range(1,14) it is ...
EdiD's user avatar
  • 342
0 votes
0 answers
22 views

Why :new edited buffer prevents :bn without naming and saving?

I use that buffer as scratchpad but nvim makes that really really hard. Why current settings are default?
Jarivaa's user avatar
  • 69
3 votes
3 answers
6k views

link config files

Problem I'm trying to move my config files from a .dotfiles folder, and link those files to the corresponding config path. Example In this example I'm trying $ ln -s ~/.dotfiles/nvim/init.vim ~/....
Norman Perrin's user avatar
1 vote
1 answer
478 views

Start nvim with a bindsym in i3

How can can I start nvim with a bindsym from i3? If I just type bindsym $mod+F1 exec nvim nvim doesn't show, since it just runs in the background without a terminal. So how can I invoke nvim with a ...
user2741831's user avatar
2 votes
2 answers
505 views

Signal neovim to reread its configuration

I have a script with which I toggle between a dark and a light colorscheme. The terminal emulator I use (termite) rereads its configuration when receiving the signal USR1, so when toggling my ...
syntonym's user avatar
  • 131
1 vote
3 answers
5k views

Terminal colors look wrong when using tmux with termite

The terminal i'm using is termite, and it is very good, but i'm having a problem with vim colorschemes and some colors in the terminal itself too when using tmux. It happens as follows: As you can ...
Erick César's user avatar
1 vote
2 answers
3k views

How to search in vim ignoring all whitespace (and making it a function)

How can I search a string in vim and thereby ignoring any whitespace (or particularly line breaks) between any characters? And probably thereby making a function that can search ignoring all ...
Hielke Walinga's user avatar
1 vote
1 answer
386 views

Tilix -e nvim doesn't load my bash/zsh environment / profile

I put tilix -e nvim command for shortcut in my xfce. Then I do :!echo $PATH and doesn't get my regular $PATH value. The same for :echo $PATH. If I put command in whisker menu, I got the same. But ...
neochar's user avatar
  • 11
2 votes
0 answers
220 views

Highlight matched character foreground color?

I have setup Vim to highlight trailing whitespace: set listchars=eol:↵,nbsp:◦,tab:―→,trail:⮿,extends:⮚,precedes:⮘ set list " Show problematic characters. " Also highlight all tabs and trailing ...
Naftuli Kay's user avatar
  • 40.2k
0 votes
1 answer
2k views

vim continued forward/backward search direction

Some time ago I read about an option that fixes the behavior the 'n' and 'N' keys cause when continuing a search in vim. That is, by default 'n' performs a forward search if the search was triggered ...
deso's user avatar
  • 31
0 votes
1 answer
1k views

Exec vim in new urxvt window preserving theme

I want to create a simple script to launch nvim (not gvim) in separate terminal window (I'm using urxvt term). Currently I have: #!/usr/bin/env bash exec urxvt -hold -e "vim" It seems legit and ...
ddnomad's user avatar
  • 2,018
3 votes
1 answer
2k views

Enable true color for neovim in Fedora 25

I use neovim in tmux in gnome-terminal on Fedora 25. Here I found out, that I do not have true color support because terminal is not linked to some libvte of correct version. Since many nvim color ...
mike's user avatar
  • 271