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
0 votes
2 answers
23 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: $ ...
user avatar
0 votes
0 answers
5 views

Different Plugins for Different Filetypes Neovim

I've used Neovim in the past for writing LaTex documents and have found that experience pretty great. I'm considering expanding my usage so that it becomes my daily driver for software development. ...
user avatar
0 votes
0 answers
13 views

Xmonad Stealing Keymap for Neovim Toggleterm

So when I am using Neovim, I have a plugin that when I hit <Ctr>+ \ it will open a terminal in Neovim. It seems like every once in awhile it stops working and not sure if the issue is in Neovim ...
user avatar
  • 101
0 votes
0 answers
24 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 ...
user avatar
1 vote
0 answers
17 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 ...
user avatar
  • 293
1 vote
1 answer
104 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='...
user avatar
0 votes
0 answers
33 views

nvim flutter change default device to emulator

When I start flutter project: :CocCommand flutter.run the app is starting via Chrome, but I need to start via device emulator. If I start manually: :CocList FlutterEmulators I can choose my device ...
user avatar
  • 1
0 votes
0 answers
234 views

neomutt + neovim

using: ubuntu 18.04, neomutt 20171215, neovim v0.6.0. i am new to neovim and neomutt nvim is the default editor in my neomutt. When i compose an email the text appears justified, and after i send the ...
user avatar
1 vote
1 answer
48 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 ...
user avatar
  • 11
0 votes
1 answer
549 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 ...
user avatar
  • 1,089
0 votes
1 answer
132 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 ...
user avatar
0 votes
0 answers
94 views

How to find a file in current working directory without opening the file in vim

When there is a unit test error in the Java project it shows me the class name. Since it is java class name and the file name is the same I can just append .java. So right now I can add the current ...
user avatar
  • 243
0 votes
0 answers
149 views

E5105 in NeoVim in Debian 11

I have installed bufferline plugin on neovim using vim-plug with Plug 'akinsho/bufferline.nvim'. I should add require("bufferline").setup{} into my init.vim for keeping this plugin enable. ...
user avatar
1 vote
1 answer
688 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 ...
user avatar
  • 135
0 votes
0 answers
30 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
1 vote
2 answers
262 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 <...
user avatar
1 vote
0 answers
207 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 ...
user avatar
2 votes
1 answer
349 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 ...
user avatar
  • 71
0 votes
1 answer
931 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 ?
user avatar
1 vote
1 answer
148 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 ...
user avatar
  • 111
0 votes
0 answers
264 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/...
user avatar
2 votes
1 answer
192 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 ...
user avatar
  • 161
0 votes
1 answer
403 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 ...
user avatar
  • 647
2 votes
1 answer
816 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 ...
user avatar
  • 201
1 vote
1 answer
494 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 ...
user avatar
  • 290
0 votes
0 answers
17 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?
user avatar
  • 69
2 votes
3 answers
1k 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 ~/....
user avatar
0 votes
1 answer
141 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 ...
user avatar
2 votes
2 answers
199 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 ...
user avatar
  • 131
1 vote
3 answers
4k 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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
240 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 ...
user avatar
  • 11
2 votes
0 answers
121 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 ...
user avatar
  • 36.1k
0 votes
1 answer
1k 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 ...
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 ...
user avatar
  • 1,838
1 vote
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 ...
user avatar
  • 241