Questions tagged [nvim]
for questions specific (and unique) to the Neovim program. Questions about Vim in general should use [vim].
43
questions
0
votes
0
answers
268
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 ...
0
votes
1
answer
161
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 ...
0
votes
1
answer
156
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 ...
0
votes
0
answers
26
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 ...
1
vote
1
answer
191
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 ...
0
votes
1
answer
914
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/...
0
votes
1
answer
175
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 ...
0
votes
1
answer
157
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 ...
1
vote
1
answer
182
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: ...
0
votes
0
answers
100
views
How to use Fixed family bitmap fonts in fbterm
I work in a text terminal a lot on my Debian 12 box, and I like the bitmap font family it uses, which IIRC is called Fixed. I use vim for pretty much everything, and it works well in this environment.
...
0
votes
1
answer
115
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 ...
0
votes
0
answers
303
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 ...
1
vote
2
answers
1k
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:
$ ...
1
vote
2
answers
3k
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 ...
0
votes
0
answers
76
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
...
1
vote
0
answers
77
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 ...
1
vote
1
answer
514
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='...
2
votes
1
answer
146
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
333
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 ...
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 ...
0
votes
0
answers
88
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 ...
5
votes
2
answers
831
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 <...
1
vote
0
answers
396
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 ...
2
votes
1
answer
734
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 ...
0
votes
1
answer
2k
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 ?
1
vote
1
answer
337
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 ...
0
votes
0
answers
594
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/...
2
votes
1
answer
269
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 ...
0
votes
1
answer
557
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 ...
3
votes
1
answer
1k
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
...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
21
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?
3
votes
3
answers
3k
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 ~/....
1
vote
1
answer
357
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 ...
2
votes
2
answers
415
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 ...
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 ...
1
vote
2
answers
2k
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 ...
1
vote
1
answer
355
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 ...
2
votes
0
answers
200
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 ...
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 ...
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 ...
2
votes
1
answer
1k
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 ...