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
2 votes
1 answer
3k views

Setting C++ indentation level?

I'm using basically the formatting of the Google C++ Style Guide. How can I configure neovim to use these settings for C++? On the other hand, for pure C, I would like it to use the BSD style. ...
user avatar
  • 41
2 votes
2 answers
1k views

How do I set `$NVIM_LISTEN_ADDRESS` on startup using windows?

On unix, you can do something like this: $NVIM_LISTEN_ADDRESS=/some/path nvim On Windows, that does not work. What is the equivalent? My use case is detailed out here: https://github.com/mhinz/...
user avatar
  • 121
1 vote
2 answers
703 views

Analyze NeoVim Performance Bottlenecks

My Vim is kinda slow for nearly everything. Opening a file takes five seconds, it flickers when I move up and down NerdTree and sometimes when I switch windows or tabs, it freezes for dozens of ...
user avatar
17 votes
2 answers
3k 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 ...
user avatar
  • 349
0 votes
1 answer
401 views

Weird behavior of NERDTreeFind function

I have keymap in my init.vim file nmap <silent> <leader>y :call NERDTreeFind()<cr> It opens a default file in the NERDTree window from vim's command line by typing :NERDTreeFind as ...
user avatar
  • 349
1 vote
1 answer
332 views

Have NeoVim confirm before closing when terminals are open

When we type :qa or :wqa, neovim quits/save-and-quits all buffers. This also closes any terminal buffers that are open, even if there are pending jobs running. Those jobs just get killed! Is there a ...
user avatar
6 votes
1 answer
6k views

How to use zsh by default for terminal emulator

In neovim, when use the command :term, it opens a new shell with bash. I want to use zsh by default. zsh is already my default shell. I changed it with chsh.
user avatar
  • 197
1 vote
0 answers
675 views

Neovim:Background color doesn't fill terminal window

I recently set my nvim theme to PaperColor but after following the instructions and setting my background color to dark it leaves some dead space at the bottom and on the right.Here is a screenshot. ...
user avatar
  • 11
0 votes
1 answer
67 views

Inconsistent moves

I have the following mappings in my ~/.vimrc: " Add new lines and spaces without changing the mode nmap <leader>j mvo<Esc>`v nmap <leader>k mvO<Esc>`v nmap <leader>h i&...
user avatar
1 vote
1 answer
338 views

Open with Neovim files that were encrypted with Vim

It seems I cannot open with Neovim the files I have encrypted with Vim. Neovim just open the files without decrypting them, displaying all those gibberish character sequence. Is it considered normal ?...
user avatar
1 vote
2 answers
865 views

vimscript: set text of command line in command mode?

How can one set the text of the command line in command mode? So when it is not in use? Same as the message that appears when writing a file? I'm looking for a solution for vim and/or nvim, preferably ...
user avatar
  • 919
1 vote
0 answers
666 views

Viewer for Markdown/MathJax rich text editing in vim/neovim?

Problem Statement Currently I use VIM in a terminal to write code. All my notes are on Microsoft Word 365, which I have been using for a long while. I tried using markdown recently, used VIM to ...
user avatar
  • 825
24 votes
2 answers
20k 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?
user avatar
1 vote
1 answer
1k views

How to use UltiSnips with SpaceVim?

I'm trying SpaceVim and I would like to use the plugin UltiSnips with it, instead of Neosnippets that comes with it as default. Based on what I found in http://spacevim.org/documentation, https://...
user avatar
  • 45
7 votes
2 answers
4k 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 ...
user avatar
2 votes
2 answers
296 views

Neovim - Map selectively only on a terminal window

I like the terminal in neovim. I am accustomed to tmux and tmux's copy-mode, and type q to exit copy-mode to return back to regular-interactive-mode. Now, in neovim, when in NORMAL mode (which is akin ...
user avatar
3 votes
1 answer
9k views

Why files in `~/.config/nvim/after/ftplugin/` are not taken into acount?

My neovim doesn't load file type plugins when loading a ruby/eruby file. Here is the corresponding configuration files: for f in ~/.config/nvim/after/ftplugin/* ; do echo "# $f" ; cat $f; done # /...
user avatar
1 vote
1 answer
667 views

How can i get the arglist count?

I am writing a bash script about session management and what I want is if there's something in the arglist not to source the session. But I couldn't find a way to check the length of :args First of ...
user avatar
  • 259
1 vote
2 answers
701 views

Don't yank character with <DEL> key in normal mode

I am using NeoVim with Tmux on an Ubuntu on Windows setup. I have bound neovim's clipboard to the system clipboard by using : set clipboard+=unnamedplus and further configuration inside tmux. So far, ...
user avatar
  • 113
2 votes
0 answers
273 views

getting coordinates of a visual block via Neovim python API

(This is a copy of my original question on stackoverflow) Hi! I am browsing through the list of available functions in Neovim Python Client API in search of a way to get coordinates of a current ...
user avatar
  • 193
1 vote
0 answers
407 views

Nvim not getting correct terminal size opening session in tmux [closed]

MacOS Sierra 10.12.6 + iTerm2, build 3.1.4 + NeoVim 0.2.0_1. I run on iTerm a Tmux session loaded with teamocil [session] In one of tmux windows there's an instance of nvim working smoothly, ...
user avatar
  • 43
4 votes
2 answers
714 views

How to build nvim to has_perl?

I am on macOS. My ultimate goal is to speed up dbext.vim and I found the page mentioned DBI which depends on has('perl'). So I'd like to know how to build Neovim to have Perl enabled... Now I am ...
user avatar
  • 442
2 votes
1 answer
3k views

Problem of neovim with powerline-status

I have neovim 0.2.0 and powerline-status (2.6) on Fedora 26. But it fails as follows: Se ha detectado un error al procesar function provider#python3#Call: línea 18 Traceback (most recent call last):...
user avatar
  • 295
4 votes
3 answers
2k views

A version of `w` which skips to the next underscore

I frequently work with code style which asks that many non-class symbols use snake_case -- Python, Ruby, and C especially. If I have a symbol like longfirstpart_longsecondpart, I'd like to be able to ...
user avatar
  • 141
2 votes
2 answers
335 views

Insert mode keymaps: Custom keymaps just insert characters of combination when typed (Neovim)

When I use imap or inoremap to create any shortcut in Neovim 0.2.0, the shortcuts seem to act as if they are not there! Here is an example that I just tried. nnoremap <F2> :w!<CR> ...
user avatar
1 vote
0 answers
236 views

How to use JabRef with neovim without the --servername option?

I'm using vim with latex to create documents and I insert references using JabRef and create a bibliography. I can't use --servername in neovim (needed for JabRef). Any suggestions on how to make ...
user avatar
1 vote
2 answers
1k views

No folding of markdown files

Running neovim 0.1.7. When I open a markdown file, it does not fold - even when I try zM zR zc, etc. :set tells me ft=markdown and foldmethod=syntax How do I get the folding?
user avatar
  • 245
2 votes
1 answer
1k views

spacevim remapping of plugin keybindings

I am totally new to using Vim, and I have been trying out SpaceVim so far. One issue is with keybindings. So I have the Vimtex and Vim-Latex plugins installed. I want to use the compilation option ...
user avatar
  • 123
16 votes
1 answer
19k 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 $...
user avatar
2 votes
1 answer
2k views

No italics in vim

I am using vimwiki on nvim 0.1.7 on Konsole 16.12.3 on Plasma 5.9.5 on Kubuntu 17.04. Wiki text appears bold when it is between two stars. But when between two underscores, it does not appear in ...
user avatar
  • 245
1 vote
1 answer
143 views

pyeval not working on vim -u NONE or vim diffs

:echo pyeval('vim.current.window.col') works fine on a normal Neovim instance. But if I start Neovim in diff mode or with the -u NONE option and try the same command, I get this error: Error ...
user avatar
7 votes
1 answer
3k views

Is it possible to map <C-S-Space> in neovim?

I usually use gvim and it understands the mapping similar to inoremap <C-Space> <C-n> inoremap <C-S-Space> <C-p> Now I'm testing nvim and I can use the Ctrl+Space. But Ctrl+...
user avatar
2 votes
1 answer
950 views

return to buffer after exiting terminal, neovim

Most of the time I have my window split, after editing some code, I :terminal to run some commands to check if my changes make sense. when I exit the terminal, I don't have the window split anymore, I ...
user avatar
  • 201
3 votes
1 answer
581 views

Wrong indentation for fortran forall

I'm using Neovim to edit Fortran 90 files and if I type the one-liner: forall(i=1:10) b(i) = i Neovim will always assume that it has a forall block and indent the following lines (til the end of the ...
user avatar
  • 131
1 vote
1 answer
553 views

Paste without messing up indentation in insert mode

I use Ctrl-R to paste in vim when I am in insert mode, but this , more often than, not messes up the inentation and I have to indent it manually or use =. All this makes Ctrl-R same as going to normal ...
user avatar
2 votes
1 answer
781 views

Possibility to set cursor shape manually in Neovim

New versions of neovim handle cursor shapes perfectly. But for a special use case I need to change cursor shape manually for a while. Is it possible in Neovim > .2?
user avatar
  • 415
2 votes
1 answer
982 views

Automatically disable cursorline when in diff mode?

I typically use set cursorline by default and it works reasonably well with my preferred color schemes (molokai, vividchalk, moonfly). In normal mode. In diff mode, it almost always screws things up. ...
user avatar
  • 2,135
1 vote
2 answers
1k views

Using terminal in tab to open a file in that same tab

In Neovim it's good to have a terminal window open amongst the other windows (which are displaying regular buffers). Sometimes, in the terminal, I'll want to edit another file. Ordinarily you'd just ...
user avatar
94 votes
5 answers
86k 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? ...
user avatar
  • 1,189
2 votes
1 answer
5k views

Execute a command in the NeoVim terminal emulator on startup

I currently am using a command within a larger bash script to start an instance of NeoVim with some options: nvim -c "terminal" What I would like to do is be able to execute a terminal command from ...
user avatar
7 votes
2 answers
10k views

Neovim setup on MS Windows

I'm trying to switch from Gvim to Neovim. Most tutorials are about Linux and not how to setup Neovim on MS Windows? Two problems: vimrc From the document it's %userprofile%\AppData\Local\nvim\init....
user avatar
  • 169
0 votes
1 answer
328 views

different colour schemas depends how file is opened [closed]

this is my first steps in vim and I've started this from a config generated by vim-bootstrap service for neovim and c++ specific development. so I'm currently studying enabled plugins. could ...
user avatar
  • 101
12 votes
5 answers
4k 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,...
user avatar
  • 387
1 vote
0 answers
1k views

expandtab / noexpandtab toggles by itself in Neovim

I have this issue where noexpandtab turns itself on after a while. Tried to describe it here and in the Github Issue because I am not 100% sure this is a legit bug. For a long time, I have ...
user avatar
  • 2,252
2 votes
3 answers
239 views

Running autocmd somehow turns to insert mode

So, here's my problem. I want to be able to run make build whenever I save a source code file and see it in a split pane. If I manually run :split | :te! make build, I get a split pane, my makefile ...
user avatar
  • 121
1 vote
2 answers
1k views

Display enclosing namespace, class, and function

How can I convince Vim or Neovim to show the enclosing namespace, class, and function that the cursor is in? Some programming languages have no interesting namespaces or class names. In general, this ...
user avatar
  • 2,288
0 votes
1 answer
2k views

Exiting back to normal mode in terminal buffer from Vimscript

<C-\><C-n> is working as (I'd) exepected, but not from a Vimscript. I am trying to make a script that will: open Neovim's :terminal run a python script exit from the terminal input mode ...
user avatar
  • 440
7 votes
1 answer
5k views

Show newline characters in neovim

In vi/vim I can throw set list in my .vimrc file to show newline characters as $ which is very useful for my development needs. Though the same command in neovim shows only - for trailing spaces ...
user avatar
  • 283
0 votes
1 answer
829 views

NeoVim ftplugins Not working - Arch Linux

I have been using vim for a while on Arch Linux and decided to make a shift to Neovim. It's mostly working fine. The vimrc is sourced and thus all my configuration files and plugins are working fine, ...
user avatar
13 votes
3 answers
18k 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 ...
user avatar