Skip to main content

Questions tagged [neovim]

Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors). It should only be used if the problem does NOT occur in Vim or other Vi-like editors.

Filter by
Sorted by
Tagged with
5 votes
2 answers
9k 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 ...
Léo Léopold Hertz 준영's user avatar
5 votes
1 answer
2k 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 ...
user1685095's user avatar
  • 1,151
3 votes
1 answer
276 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:~] $ ...
drs's user avatar
  • 3,038
6 votes
1 answer
751 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 ...
eduncan911's user avatar
1 vote
1 answer
5k 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 ...
Nicolas Scotto Di Perto's user avatar
17 votes
1 answer
4k 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,488
10 votes
0 answers
680 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 ...
Otis Wright's user avatar
1 vote
0 answers
140 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 ...
Otis Wright's user avatar
17 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
  • 413
2 votes
2 answers
665 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 ...
testname123's user avatar
2 votes
2 answers
2k 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 ?
ChiseledAbs's user avatar
2 votes
1 answer
424 views

<s-f10> cannot be mapped in Neovim

At least not on my mac. It works fine in Vim. Is this simply an error in Neovim?
Toothrot's user avatar
  • 3,139
11 votes
2 answers
831 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.7k
19 votes
2 answers
9k 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
4 votes
1 answer
539 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 ...
Toothrot's user avatar
  • 3,139
6 votes
1 answer
4k 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 ...
lindhe's user avatar
  • 487
4 votes
1 answer
336 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 ...
uuu's user avatar
  • 547
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
6 votes
1 answer
7k 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 ...
lewiatan's user avatar
  • 421
4 votes
1 answer
358 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?
still_dreaming_1's user avatar
5 votes
1 answer
796 views

Vim split overflow

On some files, a line (often the status line) overflows straight onto the next line, which screws up rendering until the size changes (when I close/resize a vertical split etc). This also happens ...
Dan Prince'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,113
4 votes
1 answer
1k views

neovim: autocompletion on user defined command plugin

I am write a plugin for neovim in python using this client and I looking for a way to offer completion when executing a command. I have look at the following example to structure my plugin. As an ...
kokito's user avatar
  • 201
8 votes
1 answer
3k views

Neovim python3 support not working

I have problems getting python3 support working in neovim. I have followed the instructions in :help nvim-python, but :echo has('python3') returns 0. I have tried installing the neovim python ...
lrustand's user avatar
  • 151
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
7 votes
1 answer
2k views

Neovim format ruby code like rubocop

is there any chance to format code to satisfy rubocop? By default my neovim is indenting code like that: class Test attr_accessor :a, :b, :c, :d, :e, :f end However, it would be nicer to have ...
lis2's user avatar
  • 171
14 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,488
3 votes
1 answer
539 views

Neovim Python script hangs

I'm thinking of migrating from Vim to NeoVim. I decided to begin with a bit of Python code in my .vimrc that sets the backup directory. Using the documentation, I wrote the following script: "-------...
art-solopov's user avatar
3 votes
1 answer
149 views

neovim doesn't show expansion "list" of completions

In this example, when class is typed, a list of potential expansions is shown. The snippet itself works in my nvim, but the list is not shown. Commenting out my whole init.vim (the vimrc of neovim), ...
uuu's user avatar
  • 547
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
5 votes
2 answers
2k views

Edit Neovim terminal commandline within the same Neovim instance

In bash one can edit the current commandline in $EDITOR by pressing <c-x><c-e>. I am running bash inside a terminal buffer within Neovim. I would like to be able to press <c-x><c-...
Brett Y's user avatar
  • 538
9 votes
1 answer
412 views

What does the '+' symbol mean when opening a buffer?

I want to open a terminal buffer in a vertical split. If i try :vertical split terminal I get a buffer named 'terminal', not a terminal buffer. I recently learned I could do :vertical split +...
Brett Y's user avatar
  • 538
7 votes
1 answer
3k views

Trouble to call a bash command from vimrc with autocommands | "Error: no previous command" (neovim)

basically i want to test within my vimrc, if /home/$USER/.dotfiles/nvim/bundle/vim-snippets/snippets was symlinked to /home/$USER/.dotfiles/nvim/snippets If not, it should create the symlink. the ...
uuu's user avatar
  • 547
1 vote
1 answer
161 views

IndentationLine Plugin doesn't get loaded without autocmd; appearance changes from default to desired when opening another window

i use neovim and pathogen for managing plugins When i just put these settings in my init.vim, the plugin won't load. let g:indentLine_loaded = 1 let g:indentLine_fileType = ['vim','c', 'cpp'] let g:...
uuu's user avatar
  • 547
6 votes
2 answers
813 views

Fold/Unfold on moving vertically

Currently my init.vim (neovim's equivalent to the .vimrc) sets the foldmethod to marker: set foldmethod=marker When I open a file all sections are folded and if the curser is placed in the ...
LastSecondsToLive's user avatar
4 votes
0 answers
768 views

Wrong color-theme displayed

I recently saw this video about tmux and vim and instantly fell in love with the color theme used in the video. Luckily the presenter (Nick Nisi) provides a link in the video-description to his .vimrc ...
LastSecondsToLive's user avatar
4 votes
1 answer
3k views

neovim: use new .vimrc and .vim

I wanted to take a look into neovim coming from vim and my question is about the .vimrc/.viminfo as well as the .vim folder. Preferably I would like to use fresh instances of these. Do I have to ...
LastSecondsToLive's user avatar
7 votes
1 answer
3k 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,245
4 votes
2 answers
3k views

non-default colorschemes can't be loaded; setting them manually after startup works

Currently, I use vim-plug for managing plugins and vim-colorschemes for my colorschemes - which doesn't work. Approach 1: in my init.vim: Plug 'flazz/vim-colorschemes' [...] syntax on colorscheme ...
uuu's user avatar
  • 547
1 vote
1 answer
307 views

ci[ ; bracket recognition fails

i have the following Text in my vim ('|' is my cursor.: "|--------------[ LatexBox ]------------- When i press ci[, nothing happens. I would expect that it doesn't matter where exactly in the line ...
uuu's user avatar
  • 547
1 vote
0 answers
274 views

How to undojoin changes made from neovim remote plugin on TextChanged

I'm writing a remote neovim plugin that automatically inserts parens into the buffer based on http://shaunlebron.github.io/parinfer/ What I'm struggling to figure out is how can I get :undojoin like ...
case nelson's user avatar
27 votes
5 answers
14k 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
150 votes
13 answers
150k 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
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,159
3 votes
1 answer
1k views

Disable command bar completion list

when I use to autocomplete in neovim, I get two completion lists. The following screenshot was taken with an empty .nvimrc. To reproduce: Open nvim, enter :e, tab <Tab> to get the (in this ...
Patrick's user avatar
  • 133
10 votes
2 answers
339 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,245
29 votes
5 answers
14k 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 ...
aharris88's user avatar
  • 1,857
5 votes
1 answer
2k views

Is it possible to write .nvimrc for NeoVim in Lua?

Is it possible to write .nvimrc for NeoVim in Lua? Is it planned for the future?
Michał Bendowski's user avatar
17 votes
8 answers
37k 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
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