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
139 votes
13 answers
122k 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
118 votes
7 answers
110k views

How to share config between Vim and Neovim

I started using Neovim and moved my .vimrc to .config/nvim/init.vim and other stuff is located in .local/share/nvim. What is the best way to share configs or even plugins between Vim and Neovim? ...
lumbric's user avatar
  • 1,469
28 votes
2 answers
24k views

Which directory to put color schemes?

In vim, I can put color schemes inside ~/.vim/colors/ folder. Where should I put color schemes so that NeoVim can pick them up?
Andrew-Dufresne'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
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
22 votes
5 answers
11k views

What are the major differences between vim and neovim?

I have been using vim for a few months and I am wondering if I should switch to neovim. Currently I am using no plugins, and only a few basic mappings.I use vim both for quick edits of config files ...
user avatar
20 votes
2 answers
4k views

How to patch add in Fugitive plugin?

This screen I got after running the :Gstatus command: Then I moved the cursor to init.vim file and pressed the p key, i.e. run git add –patch for the current file. Now I have this screen: As you can ...
megas's user avatar
  • 379
20 votes
2 answers
6k views

What does <Plug> do in vim?

I came across <Plug> in this command of easy-motion nmap <Leader>w <Plug>(easymotion-overwin-w) I tried to search for the definition of but no luck. What does it mean? Does it have ...
John Winston's user avatar
20 votes
2 answers
18k views

How do I check the version of NeoVim in vimscript?

I can check vim's version by using v:version, and I can check if I am running in nvim by doing has('nvim'). Is there a variable like v:version in neovim to let me know the nvim version, like 0.1.4 ...
skywind3000's user avatar
20 votes
1 answer
38k views

How to reload neovims init.vim without restarting neovim [duplicate]

When I search for this I get a lot of information about reloading the vimrc, but not so much about reloading neovims init.vim. My question is - having edited the init.vim file, how I can reload this ...
baxx's user avatar
  • 965
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
19 votes
1 answer
23k views

Where do I put my "vimrc" file for Neovim on Windows?

:help nvim-from-vim says: create ~/.config/nvim/init.vim with these contents: set runtimepath+=~/.vim,~/.vim/after set packpath+=~/.vim source ~/.vimrc and: If your system sets $...
Michael Kropat's user avatar
18 votes
3 answers
16k views

Neovim on windows 10 - is it ready and how to set it up?

I am stuck on windows 10 and would like to give Neovim a shot. Is it ready, or should I just set up my vim configuration for the moment? I haven't really seen any videos or articles on Neovim under ...
vimItUp's user avatar
  • 181
17 votes
2 answers
4k views

How do you find where a variable was last assigned?

I am trying to set g:netrw_list_hide and it doesn't seem to work. No matter what I set it to in my .vimrc it always has the value ,^\.\.\=/\=$. Only if I source my vimrc file again, then it holds the ...
Cezar's user avatar
  • 273
17 votes
8 answers
34k views

Trouble Using Color Scheme in NeoVim

I don't have a full understanding of how my color scheme is interacting with the term setting in vim and this is impeding my ability to get it to display correctly in neovim. In my .vimrc file, ...
Gall's user avatar
  • 183
16 votes
1 answer
6k views

Mapping a command in Visual Mode results in error E481: No range alllowed

I'm trying to make a keyboard binding in Neovim that would send a selected block to the opened Neovim terminal. I've used these answers as guidelines https://vi.stackexchange.com/a/3390/3405 https://...
6D65's user avatar
  • 403
16 votes
4 answers
6k views

Remote pair programming in NeoVim?

I'm a NeoVim user and would like to be able to collaborate in real time with users, preferably also across other editors. Are there any open source plugins that enable remote Neovim←→Neovim pair ...
Caleb's user avatar
  • 2,235
15 votes
1 answer
3k views

Turn off synchronous scrolling not caused by either scrollbind or diff

I have a file that has decided to scroll synchronously when I open it in a second window and start scrolling. scrollbind and diff are set to off. (:set scrollbind? prints noscrollbind and :set diff? ...
Praxeolitic's user avatar
  • 2,438
14 votes
5 answers
6k views

Markdown in Neovim: which plugin sets conceallevel=2?

I'm experiecing the most annoying thing ever: when I edit a markdown file, asterisk characters are hidden by default. If I set on an open buffer :set conceallevel=0, asterisks shows up as they should,...
caneta's user avatar
  • 417
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
14 votes
3 answers
19k views

Alternative of orgmode

I really like how vim is very light-weight compared to other text editor out there. However, this last 3 month, I stumble upon spacemacs. While spacemacs trying it's best by supporting vim's key ...
goFrendiAsgard's user avatar
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
13 votes
1 answer
17k views

How to get the filetype in lua in nvim

How to get the current file type in lua with neovim? I tried following but all of them returns nil. print(vim.g.filetype) print(vim.b.filetype) print(vim.w.filetype) print(vim.t.filetype) print(vim.v....
s1n7ax's user avatar
  • 485
13 votes
3 answers
4k views

How do I ShaDon't?

I really don't care about any of the "value" that viminfo or its replacement in neovim, ShaDa, provide. I couldn't care less about whether or not my cursor is in the exact place I left it when I open ...
Floegipoky's user avatar
13 votes
1 answer
2k views

Is there an incsearch for the replace command?

I really enjoy Vim's incsearch functionality. Is there a way to have it, or something similar to it, working while I do a replacement? For example, if in normal mode I type: :%s/potato/ Can I get ...
kikito's user avatar
  • 341
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
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
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
4 answers
3k views

In neovim, how can I share registers between editor instances?

I know that vim had the client/server divide that allowed register sharing between different vim clients, but how do you achieve the same thing in neovim? It doesn't support the client/server flags. I ...
Christopher Waldon's user avatar
11 votes
5 answers
9k views

How to use NeoVim as a pager?

I tried export PAGER="nvim -R", however it does not work for man page, so I export MANPAGER="nvim -c 'set ft=man' -" again, it works. However it still does not work for git log, it looks like below: ...
acgtyrant's user avatar
  • 277
11 votes
1 answer
9k views

How to install pathogen on Neovim?

I've read that pathogen works on nvim, i tried to follow the vim installation process: mkdir -p ~/.vim/autoload ~/.vim/bundle && \ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/...
Renato Melo's user avatar
11 votes
1 answer
9k views

I can't switch to | cursor in insert mode

I want to change cursors to a | character in insert mode, and then back to a block in normal mode. I am using urxvt as my terminal, and neovim. To switch cursors in my terminal, I run the following ...
Caleb Eby's user avatar
  • 213
11 votes
6 answers
13k views

Installing Neovim 0.7 on Ubuntu?

I just moved from Mac to Ubuntu. I have set everything up but my lua keybindings are following the 0.7 configurations. When I install neovim on Ubuntu it gives me 0.6. I tried this: sudo add-apt-...
Vinn's user avatar
  • 627
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
11 votes
2 answers
718 views

Is there a way to detect if I'm recording in vimscript?

Is there anything like eval("is_recording()") that I can call in my vimscript to find out if I am currently recording a macro? I would have thought this works: eval("mode(1)") but that just ...
DJMcMayhem's user avatar
  • 17.3k
11 votes
2 answers
1k views

Neomake hanging when using eslint

I have been following the following two tutorials to try and set up eslint and Neomake: Linting code with Neomake and Neovim Linting code with Neovim and Neomake - ESLint edition So I have the ...
Otis Wright's user avatar
10 votes
5 answers
5k views

Use case for neovim terminal emulator?

One big difference of neovim and Vim is that neovim includes a terminal emulator that works asynchronously. However, I fail to see how can I profit from this feature. For what can I use it? Can you ...
cbaumhardt's user avatar
  • 2,079
10 votes
3 answers
17k views

How to format files on save using black with neovim and coc

I'm trying to have python files format on save using black and neovim, with coc. Coc config I have the following coc config: { "coc.preferences.useQuickfixForLocations": true, "coc....
baxx's user avatar
  • 965
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
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
10 votes
6 answers
11k views

open coc-definition in new split in coc

I am using coc.vim in neovim. coc.vim suggests the following mapping for jumping to the definition of a class/method. nmap <silent> gd <Plug>(coc-definition) If there is only a single ...
Joyce Babu's user avatar
10 votes
1 answer
666 views

How to test if certain event is supported?

I want to test in a script if this version of vim supports the "CmdlineEnter" event. This is a relatively new addition in vim and neovim doesn't support it in it's current 0.2.2 version (although ...
voger's user avatar
  • 203
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
1 answer
2k views

NeoVim hides the * chars when editing markdown

I am using tpope's vim-markdown plugin to edit markdown files. Somehow, neovim hides the _ and * chars and changes the text in between to italic or bold depending on quantity of chars. I want to see ...
user1135541's user avatar
  • 1,083
10 votes
2 answers
326 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
15k views

How can I configure Black the python code formatter to indent 2 spaces instead of 4?

I'm using the psf/black plugin, I install and load it with vimplug: Plug 'psf/black' and I use it with <leader>f: autocmd FileType python nmap <leader>f :Black<CR> I use and prefer ...
Wis's user avatar
  • 323
10 votes
2 answers
5k views

How to close and and delete terminal buffer if programs exited?

I'm trying to modify test runner plugin to do the following: When running test show a window with them (that part is already covered by the plugin) After all tests are done if there is no errors hide ...
user1685095's user avatar
  • 1,141
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

1
2 3 4 5
31