Questions tagged [nvim]

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

41 questions
3
votes
2 answers

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 set endif But all the if examples I’m finding are too…
user137369
  • 477
  • 2
  • 4
  • 13
3
votes
3 answers

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 ~/.config/nvim/init.vim And the program (nvim in this…
2
votes
1 answer

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 resized my panes Open NEDRTree And after closing,…
fanishe
  • 31
  • 2
2
votes
1 answer

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 system clipboard. vim's other register (I think…
5c0tt
  • 71
  • 4
2
votes
1 answer

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 of this AppImage if you run it with the…
sudavid4
  • 161
  • 3
2
votes
1 answer

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 systemctl edit my-service.service systemd copies…
jameh
  • 211
  • 1
  • 7
2
votes
2 answers

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 colorscheme I send USR1 to all termite instances so that…
syntonym
  • 131
  • 4
2
votes
0 answers

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 whitespace characters. highlight ExtraWhitespace…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
2
votes
1 answer

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 schemes need true color support (and also I want…
mike
  • 261
  • 4
  • 10
1
vote
0 answers

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 workstation machines. vim.loop.os_uname() only…
Simon Schürg
  • 185
  • 1
  • 1
  • 8
1
vote
1 answer

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: Vim(echomsg):E114: Missing quote: "Error in packer_compiled:…
Sascha
  • 245
  • 2
  • 9
1
vote
2 answers

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: $ sudo visudo visudo: no editor found (editor path =…
manungsa
  • 125
  • 9
1
vote
0 answers

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 code, so I was wondering how to selectively…
belkarx
  • 325
  • 1
  • 9
1
vote
1 answer

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='nvim' in .bashrc. Using vim directly uses nvim and…
1
vote
1 answer

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 policy neovim I can see only 0.4.4-1 Installed:…
Lajos
  • 145
  • 6
1
2 3