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
0
votes
2answers
1k views

Make neovim background the same colour as the terminal background

In addition to what was asked above, is there also a way for (neo)vim background colour to change when the terminal background colour is changed? It's running in OSX in the default terminal app.
8
votes
2answers
2k 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 ...
2
votes
1answer
1k views

How to change buffer name for NeoVim Terminal special buffer

If I execute a interactive command with :terminal, buffername will be something like: term://.//1234:command executed here with params. I want to be able to change it to something more meaningful to ...
3
votes
2answers
3k views

Can't get deoplete plugin working in Neovim

I have installed deoplete plugin into my Neovim using dein. I have put let g:deoplete#enable_at_startup = 1 into my init.vim and I can see the autocomplete list when I type in the insert mode - so far ...
11
votes
2answers
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 ...
14
votes
2answers
3k 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 ...
9
votes
1answer
8k 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 ...
9
votes
1answer
2k 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 ...
6
votes
1answer
1k views

GnuPG encrypted file editing with Neovim

Is there a way to open a GnuPG encrypted file with neovim so that one can read/edit it and on write the file is re-encrypted? This is possible via vim-gnupg in classic vim but has not been ported to ...
4
votes
2answers
2k views

How can I reload my .vimrc without appending anything to my current settings?

I'm aware of this question, but sourcing that way is not the same as restarting Vim. I want to do that without restarting Vim. Like, if you have set fo+=c in your vimrc then re-sourcing changes it ...
9
votes
3answers
3k 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 ...
1
vote
1answer
771 views

How to customize the entries in the completion menu?

In insert mode, when you hit ctrlp on a partially written word, a menu pops up with possible matches for completion. How can I customize those matches ? (I have a ruby-clangc gem that I want to use ...
5
votes
1answer
2k views

How can I configure nvim to use a single escape to exit insert mode?

I was trying out nvim (neovim) for the first time and I find that I have to type <escape> twice to get out of insert mode. I'm not sure if this is a feature or a bug. I see the same behaviour ...
1
vote
2answers
520 views

Run :cwindow after :Neomake finishes

How do I attach a callback to :NeomakeProject so that :cwindow is executed after compilation finishes? i.e. I'm too lazy and want everything (open the error list) to happen automatically. (currently ...
1
vote
1answer
332 views

Get which plugin sets a specified variable?

Is there a way to know which installed Vim/Neovim plugin sets a specified variable? For example, I use Neovim 1.5-dev with the following plugins installed: morhetz/gruvbox tomasr/molokai mhartington/...
4
votes
1answer
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/...
3
votes
1answer
456 views

How can I securely restrict vim access to a single file?

So first, I realize that this question is slightly out of the ordinary for this site. I will explain the backstory to avoid the XY problem. Over on Programming Puzzles and Code Golf, lots of users (...
3
votes
2answers
210 views

Print neovim api-info using python 3

I get a human readable list of api functions using :new|put =map(api_info().functions, 'v:val.name') in neovim as suggested on https://neovim.io/doc/user/msgpack_rpc.html. Problem is, this doesn't ...
4
votes
1answer
444 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....
2
votes
1answer
1k views

Clear NeoVim Terminal window

I am using NeoVim terminal with picocom. Every so ofter, I would like to clear the terminal buffer/screen inside the NeoVim terminal without exiting picocom, is there a short cut that clears the ...
5
votes
4answers
3k views

Delete indenting spaces one at a time

I want to be able to delete indenting spaces one at a time. If I set shiftwidth to 4, it deletes 4 spaces at a time if vim counts them as indentation. Setting shiftwidth to 1 fixes the problem, but ...
1
vote
0answers
481 views

linux: yank to clipboard, cut to primary

I'm using neovim. I want to map the 0 register to the system clipboard and the unnamed register to the system primary (mouse middle click). Is it possible? I can map the unnamed register to primary ...
1
vote
0answers
87 views

How do I react to keypress in a neovim python remote plugin? [duplicate]

I'm in neovim command mode and press x on keyboard. What is the best way a python remote plugin can react to this keypress? What to do if the plugin should react to several different keys? Here is ...
0
votes
1answer
206 views

How to remove lines matching pattern in all files changed in one editing session?

I'm trying to create function and a mapping to insert/remove breakpoints in python code. So far I got this function! AddBreakPoint() let l:line = line('.') let l:indentChar = ' ' call ...
3
votes
2answers
695 views

Is it possible to edit a terminal buffer in normal mode?

Neovim has a very handy terminal emulator. In normal mode, I can use all the read-only vim commands on the output, like scrolling or going to the file under the cursor. But more often than not, I ...
4
votes
2answers
6k views

How to setup Neomake with Python?

I recently switched to Neovim and was trying to install the code checking plugin 'Neomake'. I followed the instructions for the setup in my vimrc. The plugin seems to run fine but the error list was ...
4
votes
1answer
169 views

Insert mode counts in neovim

Is there a way to get insert mode emacs style meta counts in neovim (which has support for the meta key)? Such that, for instance, <m-3>- produces 3 hyphens. PS. I mean is it possible to ...
0
votes
1answer
109 views

E890 Trailing char after ']' - vim/neovim regex

When I reload my syntax file I receive this error: E890: trailing char after ']': /v(.)@<=w+[nrs]/ Here's the line it's bugging out on, does anyone see why this doesn't work? syntax keyword ...
1
vote
0answers
335 views

Visual selection in Nvim-R plugin sends one line too much to terminal

I have just set up the Nvim-R plugin for Neovim to send lines of code from an .R-file opened with Neovim to a terminal inside a tmux session. Previously, I have worked with its predecessor Vim-R, ...
3
votes
1answer
5k views

How do I install Neovim with GUI and msgpack support in Ubuntu?

I would like to get Neovim because of its msgpack API and clear roadmap of development, but it is not in Ubuntu 16.04's repositories. Command 'gvim' from package 'vim' (main) Command 'gvim' from ...
1
vote
1answer
297 views

How to Get GVim which can be Killed by CTRL-W?

I am trying to view many files in a loop. I need a keybinding to close Gvim window. Possible choices in apt-get of Ubuntu 16.04 Command 'gvim' from package 'vim' (main) Command 'gvim' from package '...
5
votes
2answers
7k views

How to Start Graphical Neovim from OS X Terminal?

I have installed the terminal neovim which starts by nvim, and the graphical neovim. I cannot find the keybinding to start the graphical neovim in Terminal. I installed the neovim by following ...
4
votes
1answer
1k views

How to auto save file when moving between split?

I'd like to automatically save buffer after moving into another split. If you're interested why I'm interested in that read section below. I've started using vim and then neovim not so long ago, so ...
3
votes
1answer
250 views

Neomake prints results to terminal when invoking upon wq

In my .config/nvim/init.vim I have autocmd BufWritePost * Neomake This works well when writing the file. But when writing and quitting with :wq, the results are prented on the terminal: [user:~] $ ...
6
votes
1answer
637 views

Lots of Explore issues [closed]

I've been using [Neo]vim for a few months now with a number of plugins. One I decided to use was the built in :Explore for my file-browsing needs. I am having some serious issues with Explore and ...
1
vote
1answer
4k views

Need help for setting up completion for C/C++ with deoplete and neovim

I'm having some trouble to enable C/C++ completion with deoplete. I don't know what plugins I should really install and how to configure deoplete to work with them. I read that for C/C++ completion ...
13
votes
1answer
2k 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? ...
8
votes
0answers
506 views

Persistently fix the height of a split in vim

So I searched the web far and wide and I can not for the life of me figure out how to do this. I have the following key binding: nnoremap <leader>o :below 10sp term://.//$SHELL <cr> :set ...
1
vote
0answers
119 views

:vsp sometimes making one split bigger than other and hiding NERDTree

So most of the time I have my standard layout like this: And every now and then I want to open a split in the main buffer using :vsp and most of the time that looks like this: And that is what I ...
12
votes
1answer
4k 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://...
2
votes
2answers
490 views

Pandoc and formatting

I'm using the vim-pandoc and vim-pandoc-syntax bundles in neovim. I'm converting the markdown to a docx file and I'm seeing that I need to do a double space in order to get a carriage return in the ...
2
votes
2answers
1k views

Ugly orange triangle in the airline theme using nvim

I have an ugly orange triangle appearing in the airline bar in my nvim regardless of the theme I use. Take a look at that : Shocking, isn't it ? Now do you have an idea on how to correct this ?
11
votes
2answers
505 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 ...
17
votes
2answers
6k 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 ...
3
votes
1answer
443 views

Ultisnips causes problem with unmapped f-keys in nvim insert mode

With F2 unmapped, for instance, I get a load of error messages (see below). I realized I can fix this by mapping the f-keys, but I'm curious: are they mapped to something by Ultisnips, that doesn't ...
4
votes
1answer
3k views

How to use Neovim as editor in MATLAB

One of the neat features in Neovim is that it should be possible to embed it into other applications, to make it look it as if it was the built in editor an IDE for example! I really want to do this ...
4
votes
1answer
245 views

insert mode Abbreviations work in command mode, but not in insert mode

I have: au BufRead,BufNewFile *.tex set filetype=tex au BufRead,BufNewFile *.tex inoreabbrev ß \ss{} au BufRead,BufNewFile *.tex inoreabbrev ö \"{o} au BufRead,BufNewFile *.tex inoreabbrev ä \"{a} au ...
3
votes
2answers
2k 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 ...
6
votes
1answer
4k views

how to close tab and remove this file from buffers

I often use :tab sball to open all buffers as tabs, but sometimes after doing so I would like to close the tab and remove file from buffers at the same time. How can I achieve that? I know already ...
4
votes
1answer
324 views

Why do terminal buffers get deleted in Neovim

My terminal buffers get deleted automatically when I switch to a different buffer. Is that supposed to happen? It's really annoying. Is there a way to prevent this?