Questions tagged [neovim]

A project that seeks to refactor Vim. Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors).

Filter by
Sorted by
Tagged with
194 votes
6 answers
90k views

What is Neovim, and how is it different from Vim?

I've been hearing about Neovim; how does it differ from Vim? All the points on the homepage are just architectural changes 'under the hood'. As a user, what's the difference for me?
Martin Tournoij's user avatar
24 votes
5 answers
13k views

How can I use --servername and --remote in neovim?

in vim I can do vim --servername foo and vim --servername foo --remote-silent bar.txt to open files in one instance of vim from several terminal windows (via tmux or whatever). How is the same thing ...
Rafael Vega's user avatar
8 votes
1 answer
11k views

How to run terminal command in interactive mode from NeoVim?

I have a terminal command which runs code with a breakpoint in it. When I run this command in NeoVim the code execution does not stop at the breakpoint, instead I get an error, that its not a TTY ...
niekas's user avatar
  • 1,495
12 votes
1 answer
3k views

Is there any way to distinguish between neovim and regular vim?

I was trying to migrate to neovim from vim. But in the end, there's some plugins which require python3 support and neovim package doesn't build with python3 by default( I'm on ubuntu, install neovim ...
Aaron Shen's user avatar
  • 2,479
12 votes
5 answers
2k views

Abandon Vim and adopt Neovim - hard reasons for not doing so?

With my pending adoption of Ubuntu MATE 22.04, I am looking primarily at neovim, with possible adaptation as spacevim/lunarvim. I am very comfortable with Vim, but am looking for a proper ide layer ...
Eric Marceau's user avatar
9 votes
2 answers
11k views

Neovim setup on MS Windows

I'm trying to switch from Gvim to Neovim. Most tutorials are about Linux and not how to setup Neovim on MS Windows? Two problems: vimrc From the document it's %userprofile%\AppData\Local\nvim\init....
aj3423's user avatar
  • 199
138 votes
13 answers
121k views

Exit from Terminal mode in Neovim/Vim 8

I can't figure out how to go back to Normal mode after entering Terminal in Insert mode... Escape just doesn't seem to work. Any idea?
Stephane Rolland's user avatar
26 votes
4 answers
12k views

How to enter insert mode when entering neovim terminal pane?

I have the following mappings to make it easy to move out of a terminal pane in neovim: tnoremap <C-h> <C-\><C-n><C-w>h " Workaround since <C-h> isn't working in neovim ...
aharris88's user avatar
  • 1,827
10 votes
5 answers
3k views

Clipboard is reset after first paste in Visual Mode

I am on Neovim. This is really annoying and weird. When I make a selection in Visual Mode and copy, then select a text and then paste, this paste only works once. For the next time, I again have to ...
ng.newbie's user avatar
  • 245
7 votes
3 answers
12k views

Neovim with split integrated terminal / REPL

Other editors and IDEs, such as VSCode and RStudio, have an integrated console/terminal/REPL with the following characteristics: They open in a split window. The file we’re working on is visible at ...
user137369's user avatar
6 votes
0 answers
625 views

How to exit insert mode if pressing escape merely types "^["?

I have neovim 0.4.2 running in a session of kiTTY 0.17.4 on OSX. I have pasted a long url while in insert mode. After doing this, every time I type BKSPC vim adds ^? to my document. Every time I type ...
Andrew Farrell's user avatar
6 votes
2 answers
429 views

Is there an autocmd-like event for when operator pending mode is entered?

I'd like to make a plugin to display currently pending keys while in operator-pending mode. As the first part of that, how would I register an autocmd to run when operator-pending mode is entered? I'm ...
lahwran's user avatar
  • 161
6 votes
1 answer
1k views

How to color VIM ":!{cmd}" output?

I'm trying to get the same setup as the guy in this video, so that when :!pytest % gets called, the output is colored. I've tried with various vanilla colorschemes, with no luck... I'm using Neovim, ...
eltbus's user avatar
  • 171
5 votes
4 answers
5k views

How to clear neovim terminal buffer

I have a terminal buffer with 10000 lines of previously executed output. In order to search for the particular sequence of words I have to go through all 10000 lines before getting to my last executed ...
NikitQa's user avatar
  • 121
4 votes
1 answer
2k views

NeoVim: default colors don't match vim's

I'm running NeoVim "straight out of the box"; after running the following commands: mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config} ln -s ~/.vim $XDG_CONFIG_HOME/nvim ln -s ~/.vimrc $XDG_CONFIG_HOME/nvim/...
Klaas van Schelven's user avatar
4 votes
1 answer
545 views

Start and attach to neovim in same python file

I have a working prototype for some kind of linux-based neovim-app. Sole functionality is "vsplit if 'k' is pressed". It is based on tarruda's nvim-terminal-edit-py. It is started through start_nvim....
Markus's user avatar
  • 175
4 votes
1 answer
2k views

How to change indenting for html files?

I code mainly in 2 languages python and HTML. I currently have the indenting configured for python in my neovim configuration file but I would to know how to make neovim auto-detect the type of file ...
KnownAsDon's user avatar
3 votes
4 answers
2k views

Nvim can not detect focus change inside tmux sessions

I use the following setting for automatic line number toggle. augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave * set relativenumber autocmd BufLeave,FocusLost,InsertEnter ...
jdhao's user avatar
  • 1,063
3 votes
1 answer
323 views

Restore working directory in terminal windows when loading session

While using :mksession feature, I found that it works well with files and netrw, but not so much with neovim terminal windows. The problem is that, for terminal, it never preserves working directory ...
Thunderbeef's user avatar
3 votes
2 answers
5k views

FileType autocommand not working in Neovim

My init.vim is just au FileType * echom "test" However, if I open a file, neovim-qt will not echo test. If I load a new file while the window is open, it will also not work. I have managed to find ...
Mason's user avatar
  • 471
3 votes
1 answer
2k views

Add custom section to airline

I want to add section to mu airline that will display the output of a function called SpinnerText() taken from here. I honestly don't really understand how to do it and yes I did look at the ...
Thermatix's user avatar
  • 229
3 votes
1 answer
243 views

Moved from vim to neovim and now <BS> deletes 4 spaces at a time, instead of 1 as I'm used to. How to fix?

I've used vim for ages and am really used to inserting four spaces by hitting tab, but then being deleting them one by one. Now that I've switched to neovim this has changed to it inserting four ...
Codemonkey's user avatar
1 vote
1 answer
860 views

Is it possible to type "return + shift" to insert a new line in deoplete?

Here is a situation. I use deoplete but since the pop-up menu when I type in something already puts the cursor at the first item on the list, when I type in return, it inserts a new line. So I want ...
Blaszard's user avatar
  • 537
1 vote
2 answers
101 views

Disable E173: X more files to edit warning in neovim

How can I make :q and other standard ways of exiting quit immediately even if E173 would ordinarily have stopped me in my tracks? Because this doesn't seem possible in regular VIM, how can I do it in ...
theonlygusti's user avatar
  • 2,189
0 votes
0 answers
52 views

How can vim show multiple files are changed on disk?

How can vim tell me which buffer is changed on disk among multiple buffers? related to this thread, @b-layer helped me my current vimrc code: set autoread autocmd FocusGained,BufEnter,CursorHold,...
Mega Bang's user avatar
  • 121
19 votes
4 answers
6k views

Send text from one split window to another

Recently there was an add-on to NeoVim which allows opening terminal in a vim buffer. This has appealing possibilities to send text from one vim window to another replicating, for example, a REPL like ...
Karolis Koncevičius's user avatar
19 votes
2 answers
8k views

How to conditionally load plugins

I was searching for an answer to this, but haven't found anything yet, so if I missed something obvious, I apologize. I thought it would be a quick google search away, so maybe it's more complicated ...
Hoopes's user avatar
  • 305
14 votes
3 answers
5k views

How can I change the default grep call (grepprg) to exclude directories?

I am trying to change the default grep call to avoid unnecessary plugin installation. What I want from vim is to call the external search using the builtin command :grep with custom arguments, this is ...
MaikoID's user avatar
  • 293
13 votes
2 answers
2k views

Detect neovim terminal from bash in bashrc

Does neovim set any environment variables that would let me detect from bash that the terminal is neovim? I want to change the behavior of my .bashrc if neovim is the terminal.
Praxeolitic's user avatar
  • 2,438
12 votes
3 answers
14k views

How to install stable version of neovim on Ubuntu 18.04

No matter how I do it, I seem to get the nightly or the 0.2.2 version. How do I install the stable version of Neovim. I have too many issues in the nightly. I used sudo apt install neovim and when I ...
Costa Michailidis's user avatar
11 votes
2 answers
3k views

How to start maximized gui with qt-neovim?

I am using neovim with qt-neovim (linux arch). On gvim I could launch a maximized window with: if has("gui_running") set lines 999 columns 999 endif That is not working now though. I ...
cdvv7788's user avatar
  • 219
10 votes
2 answers
7k views

Running a command Async in Neovim

As far as I know, Neovim enables running a command async, without blocking the user. I was told this is also enabled in Vim 8. But I couldn't find examples of how to run a command asynchronously. ...
Husain's user avatar
  • 245
10 votes
2 answers
324 views

How can I make vim stop splitting my words into chunks?

English language users probably don't have this trouble, but vim is pretty dumb when it comes to regular expressions. In my case most letters in the Turkish alphabet outside the EN alphabet don't seem ...
Caleb's user avatar
  • 2,235
10 votes
2 answers
7k views

Why is my Neovim not in English and how do I force it to be?

I'm using Neovim 0.2.2 on macOS High Sierra (10.13.1), installed via brew install neovim. I removed .config/nvim/init.vim. Neovim starts up using German for interface labels, as shown here: Here's ...
anothernode's user avatar
10 votes
5 answers
2k views

Show exact number of matches even for large (>99) numbers

When I search for something /search-term and it shows up more than 100 times in my file, vim shows me that I'm on match x/>99 instead of x/121 etc. For smaller numbers it shows me the exact number ...
theonlygusti's user avatar
  • 2,189
8 votes
1 answer
3k views

How can neovim on Windows be configured to use gitbash as the shell without breaking temp files?

At work I use neovim on Windows, and set the shell to bash using the bash executable that comes with Git for Windows (gitbash), which is in my PATH. The settings in the minimal init.vim pasted below ...
greenglass's user avatar
6 votes
1 answer
2k views

Search and highlight two different strings in different colors

I have a situation with typesetting a book in which the quotation marks are all screwed up. The author used a variety of marks¹ and apparently didn't believe in discriminating between them. I've ...
Caleb's user avatar
  • 2,235
6 votes
3 answers
6k views

Portable Neovim. How to change default data folder? How to avoid registry entries?

I'm trying to make a protable Neovim so I can use my plug&play IDE from a USB thumbdrive on any offline Windows computer. I managed to store my plugins and my sysinit.vim onto the USB drive and ...
Piglet's user avatar
  • 175
6 votes
1 answer
5k views

Neovim Clipboard Selection

I am using neovim 0.2.3 dev and xfce4-clipman clipboard manager. I want to copy from the neovim into registers and put it into clipman register. How can I do that?
3N4N's user avatar
  • 5,444
6 votes
1 answer
9k views

Managing autoload directories efficiently

There are a few questions intertwined -- I hope I convey my intentions well enough so that someone understands where I'm confused and what I'm trying to do. I apologize ahead of time for the chaotic ...
waxwing's user avatar
  • 163
5 votes
3 answers
3k views

How to set the size of the Neovim-qt GUI?

I am using neovim-qt but cannot figure out how to set the size of the window. I tried: nvim-qt -h nvim-qt --help nvim-qt --width=80 nvim-qt --geom 80x120 But nothing gave me any indication as to ...
Sardathrion - against SE abuse's user avatar
5 votes
2 answers
2k views

How to remove entries from v:oldfiles list in neovim

I renamed a big folder that contains a lot of files I recently edited. After changing the name, my neovim's v:oldfiles list contains the old names that is no longer accessible. How can I clean the ...
doraemon's user avatar
  • 1,647
5 votes
1 answer
2k views

How to keep the neovim terminal buffer in the buffer list even after it being hidden

My problem is similar to, if not same as, this issues. But I can't follow what they're talking about. The following steps are necessary to reproduce my problems: :sp :term :wincmd w :wincmd o :ls ...
3N4N's user avatar
  • 5,444
4 votes
1 answer
1k views

NeoVim - Go into insert mode when clicking in a terminal in a pane?

I'm trying to use NeoVim as a tmux replacement, and have found that no matter what I do, I can't get it to go into insert mode when I click in a pane that has a terminal in it. Here's the config I'm ...
Brad Parks's user avatar
4 votes
0 answers
974 views

"^[[201~" character being pasted at the end of file

I'm trying to copy-paste by hand this file, but whenever I paste the contents in vim the last line shows this weird character at the end of the line ^[[201~. My guess is that it's one of those wrong ...
Teodoro's user avatar
  • 153
4 votes
1 answer
1k views

remap not working; <NL> in appears in other binding

I'm trying to remap Control + [hjkl] to navigate among splits, by setting this in my rc file: " splits navigation nnoremap <C-h> <C-w>h nnoremap <C-j> <C-w>j nnoremap <C-k&...
alxndr's user avatar
  • 1,356
4 votes
1 answer
8k views

Neovim: Select an autocomplete option with <tab> instead of <return>

In the example below, how do I use <tab> to select HttpResponse the item instead of <enter>? I'd like to make this change permanent. This is using Kite within vim in case it matters.
WickedJargon's user avatar
3 votes
1 answer
1k views

copy-paste selection locally when editing files on remote headless server

When connected to a remote headless Linux server via SSH, I want to be able to do 3 things: select text using the mouse and copy the selection into my local X clipboard paste from local X clipboard ...
J-S's user avatar
  • 33
3 votes
1 answer
140 views

Setting to prevent <c-h> to erase text

I have a map which allows me to navigate with hjkl in insert mode: " In insert or command mode, move normally by using Ctrl inoremap <C-h> <Left> inoremap <C-j> <Down> ...
Diego Somar's user avatar
3 votes
1 answer
11k views

Why files in `~/.config/nvim/after/ftplugin/` are not taken into acount?

My neovim doesn't load file type plugins when loading a ruby/eruby file. Here is the corresponding configuration files: for f in ~/.config/nvim/after/ftplugin/* ; do echo "# $f" ; cat $f; done # /...
psychoslave's user avatar