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
6 votes
1 answer
682 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
1 answer
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 ...
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? ...
  • 2,368
9 votes
0 answers
618 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
0 answers
132 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 ...
14 votes
1 answer
5k 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://...
  • 383
2 votes
2 answers
549 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
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 ?
2 votes
1 answer
204 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?
  • 3,089
11 votes
2 answers
634 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.1k
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 ...
  • 305
4 votes
1 answer
521 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 ...
  • 3,089
5 votes
1 answer
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 ...
  • 437
4 votes
1 answer
278 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 ...
  • 547
4 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 ...
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 ...
  • 411
4 votes
1 answer
345 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?
5 votes
1 answer
681 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 ...
10 votes
1 answer
1k 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 ...
  • 1,073
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 ...
  • 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 ...
  • 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 ...
  • 181
7 votes
1 answer
1k 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 ...
  • 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.
  • 2,368
3 votes
1 answer
509 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: "-------...
3 votes
1 answer
131 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), ...
  • 547
11 votes
2 answers
2k 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 ...
  • 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-...
  • 528
9 votes
1 answer
375 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 +...
  • 528
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 ...
  • 547
1 vote
1 answer
159 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:...
  • 547
6 votes
2 answers
628 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 ...
4 votes
0 answers
753 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 ...
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 ...
5 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 ...
  • 2,175
4 votes
2 answers
2k 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 ...
  • 547
1 vote
1 answer
240 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 ...
  • 547
1 vote
0 answers
183 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 ...
22 votes
5 answers
12k 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 ...
125 votes
13 answers
101k 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?
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 ...
  • 2,039
3 votes
1 answer
995 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 ...
  • 133
9 votes
2 answers
309 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 ...
  • 2,175
23 votes
4 answers
10k 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 ...
  • 1,757
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?
17 votes
8 answers
31k 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, ...
  • 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 ...
7 votes
1 answer
1k views

Warning when opening commit message with Neovim

I've been using Neovim for a few days with no problem, so I decided to switch my git config to use Neovim instead of vim. Here's what I put in my global .gitconfig: [core] editor = nvim And here'...
  • 1,757
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&...
  • 1,346
189 votes
6 answers
84k 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?

1
20 21 22 23
24