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
4 votes
1 answer
556 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
3 votes
1 answer
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 ...
user1135541's user avatar
  • 1,103
1 vote
0 answers
554 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 ...
Alessandro Pezzato's user avatar
1 vote
0 answers
89 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 ...
Markus's user avatar
  • 11
0 votes
1 answer
220 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 ...
user1685095's user avatar
  • 1,141
3 votes
3 answers
1k 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 ...
Jerome Dalbert's user avatar
4 votes
2 answers
7k 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 ...
tommyip's user avatar
  • 219
4 votes
1 answer
239 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 ...
Toothrot's user avatar
  • 3,119
0 votes
1 answer
142 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 ...
hhsnopek's user avatar
  • 101
1 vote
0 answers
401 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, ...
matthias's user avatar
4 votes
1 answer
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 ...
Léo Léopold Hertz 준영's user avatar
1 vote
1 answer
306 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 '...
Léo Léopold Hertz 준영's user avatar
5 votes
2 answers
8k 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,141
3 votes
1 answer
274 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,018
6 votes
1 answer
728 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
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,448
10 votes
0 answers
658 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
138 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
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
2 votes
2 answers
600 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
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 ?
ChiseledAbs's user avatar
2 votes
1 answer
344 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 nvim?
Toothrot's user avatar
  • 3,119
11 votes
2 answers
744 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.4k
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
4 votes
1 answer
533 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,119
5 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
  • 477
4 votes
1 answer
325 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 ...
toogley'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
6k 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
356 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
753 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,103
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
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,448
3 votes
1 answer
532 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
140 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), ...
toogley'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
400 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
2k 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 ...
toogley'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:...
toogley's user avatar
  • 547
6 votes
2 answers
750 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
764 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
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