Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [neovim]

A project that seeks to refactor Vim. Use this for tag for questions that relate specifically to features that aren't found in Vim and other Vi-like editors.

0
votes
0answers
17 views

Autocompletion for flask does not work with Neovim

I am using neovim v0.3.2-953 for python development with the following plugins. Plug 'Shougo/deoplete.nvim', Plug 'zchee/deoplete-jedi', Plug 'davidhalter/jedi-vim' The deoplete auto completion ...
0
votes
1answer
27 views

execute 'Goyo' on loading pandoc document

It seems like running the Goyo command (a distraction free editing plugin) on loading a pandoc document should be really simple, but execute "Goyo" in .config/nvim/ftplugin/pandoc.vim leads the ...
-1
votes
1answer
30 views

Prevent colorscheme from changing background color

I've got a sick terminal colorscheme, and i'm using vim-one colorscheme for neovim, what i'd like to do is stop it from changing the background color (since i like my terminals background color more) ...
0
votes
0answers
15 views

Subscribe to a buffer event in a lua plugin

I want to write a plugin that will watch a buffer for changes and execute different functions depending on the change. I know I can use nvim_buf_attach() to subscribe to buffer events, but they are ...
0
votes
0answers
21 views

Why termopen() deletes the currently opened buffer?

for example, if I have 3 opened buffers listed like this: :ls! 1 "deleteme/test1" line 1 3 # "deleteme/test2" line 1 4 %a "deleteme/test3" line 1 ...
1
vote
1answer
27 views

Can Neovim API get the text in command input area?

I'm developing a GUI client of Neovim, and looking for the way to get the text in command input area using msgpack-rpc. I mean that the 'text in command input area' is the bottom of Neovim window. (...
0
votes
0answers
30 views

mapping does not work even if I have set it up in config file

I am using Neovim on Windows using Cmder console emulator. I find that using [NUM]<Ctrl-6> to change to buffer [NUM] does not work on Windows. Following discussions here. I have set up a mapping:...
0
votes
1answer
35 views

FZF --preview in Vim returns zsh shell error

I have been trying out FZF with Neovim. I installed it via a nvim plugin package manager. I have not installed it for the command line. When trying to see file previews :FZF --preview="head -$LINES {}...
0
votes
2answers
24 views

How do I clear Neovim window after exiting Neovim on Window 10

On Linux, when I exit Neovim, the content in the Neovim window is cleared. But on Windows 10, when I exit Neovim, the content is still shown and is not cleared, leaving a lot of empty space (see image ...
1
vote
2answers
43 views

Press and hold 'x' and delete just until the cursor

Is it possible to press and hold the 'x' and just delete all characters after the cursor? currently when I hold the 'x' and all the characters after the cursor were deleted, it also deletes characters ...
0
votes
1answer
32 views

How to make vim/nvim to dont show the “[Process exited {num}]” when quitting a term?

when quitting the terminal it always show the [Process exited 2], how can I disabled it so that when I quit the terminal buffer should just close silently?
1
vote
1answer
39 views

How to move to parent directory with LeaderF?

When I'm browsing folders in LeaderF is there a way to move to the parent folder? Background: I'm building a vim (Neovim) profile and looking at file/buffer explorers, and LeaderF seems useful. (I've ...
0
votes
1answer
37 views

Change working directory color in NERDTree

Is there any ways to change the font color and background of the working directory as seen in Sublime text? Sublime Text Neovim with NERDTree
0
votes
0answers
32 views

(Solved-ish) neovim: Don't close :terminal buffer after process exit

In Vim, when I run, for example, :terminal python3, and, when I'm done, exit python, the terminal window stays open as a readonly buffer, which I can inspect freely. In Neovim, I always get "[Process ...
1
vote
2answers
48 views

set rtp in a function does not work

I have the following configuration for OCaml development which works fine: " --------------- OCaml ----------------------------- " Merlin let g:opamshare = substitute(system('opam config var share'),'...
0
votes
1answer
47 views

Has nvim ever worked on windows for anyone?

Neovim from the command line works great in Linux, and I have been using it as a drop in replacement for vim. However, I am forced to work with windows (7) at my workplace. I am using vim8 which ...
0
votes
0answers
34 views

Cause of random hangs

Randomly, my nvim will hang. Generally, it seems to happen in command mode. The latest one has hung with: :set paste! paste? On the status line. I have map <F2> :set paste! paste?<CR> ...
0
votes
1answer
20 views

Read the first line of the current file to process it in a command (Emulating %TeX root)

Currently I have the line :nnoremap <leader>c :w<CR>:!arara %<CR><CR> in my $MYVIMRC. If I press <leader>c, it will save the current file and run the command arara on ...
1
vote
0answers
42 views

How do I get neovim to automatically return to normal mode when idle?

This works fine in vim 8: autocmd CursorHoldI * stopinsert After about 5 seconds or so of inactivity in insert mode it automatically returns to normal mode. However, in neovim I use the deoplete ...
1
vote
0answers
33 views

Using pathogen, will allow me to exploit neovim capabilities when developing a plugin?

I just finished reading Learn Vimscript the Hard Way, and I am working right now with neovim And I had a bulky config file with a lot of stuff, that really slowed down vim, when I was handling heavy ...
1
vote
0answers
29 views

Odd langmap behavior with multi-key bindings

I'm getting some odd behavior from langmap. With set langmap=hjki;ihjk inoremap k u works as expected, inoremap jk u maps to ji, inoremap kik u maps to khi. When I say 'maps' I mean that's ...
0
votes
1answer
41 views

Neovim - Run a forward command with python

I need some help with writing a python plugin. I know how to create a plugin but I can't find a way to run a forward or any normal mode stuff. I know I can run commands like echo with self.vim....
1
vote
0answers
19 views

neovim: exit code for jobs terminated by jobstop

When I call jobstop on a running script waiting for input, the on_exit callback is invoked. But the exit code is always 0. Is this the correct behavior? According to :h jobstop it should be killed ...
1
vote
0answers
64 views

NeoVim: colorscheme won't work in init.vim; requires command to be typed

I'm new to NeoVim and just getting started. My init.vim file under NeoVim\share\nvim\runtime\plugin\init.vim successfully sets everything except for the colorscheme and background. As seen in the ...
2
votes
2answers
420 views

Conditional window split

I have line to split window at start: au VimEnter * vsplit But sometimes it's annoying because I'm opening vim in small terminal, in this case I'd like to not split my window. I've tried this ...
0
votes
0answers
30 views

restricted mode but read config?

I'd like to embed (spawn) a very simple ms style editor in a ncurses based app. I am currently playing with neovim's easy mode, basically loading mswin.vim with the -c option. However, I also ...
1
vote
0answers
84 views

Neovim freezes with FZF

I currently use 'junegunn/fzf.vim', along with the homebrew version of fzf in the command line to search within projects. My setup uses Neovim and Tmux, and I'm getting intermittent freezing when ...
1
vote
1answer
88 views

How to remove entries from v:oldfiles list in neovim

I renamed a big folder that contains a lot of files I recently edited. After changing the name, my neovim's v:oldfiles list contains the old names that is no longer accessible. How can I clean the ...
2
votes
1answer
63 views

vim suddenly stops indenting and uses tabs instead of spaces

every now and then my neovim just stops the correct indenting and i have to restart the session. Besides the indenting, some plugins seem to stop working as well as some built in function like the o ...
0
votes
0answers
18 views

Terminal Vim scrolls up once when I release the scroll wheel after having scrolling down

It is a weird behavior, and it's only happening on one of my laptop (they're both provisioned with the same script) which is the reason I'm having troubles identifying where does this come from. I ...
1
vote
0answers
109 views

Neovim not showing correct background color

I'm running neovim from a uxterm on arch linux with the solarized color scheme. The issue is that on scrolling only the characters which are non-whitespace are displaying the correct background. ...
1
vote
0answers
34 views

Set different values for non-current and current statuslines

When vim is split into different panes horizontally, each pane has its own statusline. It's easy to highlight the statuslines differently based on current and non-current panes. BUT, I cannot figure ...
0
votes
1answer
42 views

Option set in vimrc is overwritten - nvim

I'm trying to disable autochdir in nvim by adding the following in init.vim: set autochdir! but when I start nvim, I check the value of this option by echo &autochdir and find it equals to 1. I ...
0
votes
1answer
46 views

dd/cc command getting slow after custom mappings

I created below mappings for delete/change inner word for "/" and "," and the mappings work just fine, however the side effect is that it makes the normal dd/cc commands slow, almost approx by 1 sec. ...
1
vote
0answers
50 views

Should I install Vim or Neovim in a Docker image used on servers? [closed]

On my main machine Neovim is my go-to terminal editor. I find it much superior to Vim (I have also tweaked it a bit). The fact is, I'm the only developer who will be connecting to the servers I ...
0
votes
1answer
37 views

Is it possible to type “return + shift” to insert a new line in deoplete?

Here is a situation. I use deoplete but since the pop-up menu when I type in something already puts the cursor at the first item on the list, when I type in return, it inserts a new line. So I want ...
0
votes
0answers
37 views

Neovim command-line mode strange behaviour

I've just moved from vim to neovim to discover it. When I hit : in normal mode, it goes to command-line mode. Then I hit the first letter of the command, nothing appears beside the :. Then I hit the ...
1
vote
1answer
260 views

Vim/neoVim really slow startup

I am facing huge slowness when i start the neovim for the first time in a session, and then next time i open it the startup time is little better relatively but not as fast as vim is. I looked at the ...
0
votes
0answers
23 views

The key remapping suddenly stop working

I have been using the neovim but suddenly the following key remapping stop working, after I upgrade the neovim version from 0.2.2 (I think) to 0.3.1. nnoremap <Leader>q :mksession! ~/.config/...
1
vote
1answer
57 views

Change the terminal emulater neovim uses

Is there a way to change which terminal emulator neovim uses for its :terminal command? I am running neovim on Windows 10, and it used cmd by default; however, I would rather use cmder or another ...
0
votes
0answers
35 views

How do I disable <C-space>

I've tried doing the following to disable <C-space> but it doesn't seem to work. I am using neovim inside iTerm2 (on a mac). imap <Nul> <Space> map <Nul> <Nop> vmap <...
0
votes
1answer
41 views

neovim does not work after a “| xargs”

If I issue the following command: ls sb.ovpn | xargs vim The classic vim opens the sb.ovpn file. However if I do the same but with neovim: ls sb.ovpn | xargs nvim - That does not work as I ...
0
votes
0answers
20 views

Why my `<c-[>` bindings automatically reflect to `<esc>`? [duplicate]

i have this code in my config file: nnoremap <c-[> :call PrevFunc()<cr> nnoremap <c-]> :call NextFunc()<cr> vnoremap <c-[> :call PrevWord()<cr> vnoremap <c-]>...
0
votes
1answer
61 views

Is it possible to manage tabs only within the single window in split mode?

Here is my situation. I launch tmux on iTerm2 and then split the window vertically (left and right), then make the right side of the window split horizontally. So now, there are 3 windows, one big at ...
1
vote
0answers
34 views

Load a hidden terminal buffer

When I restore a session containing terminal buffers, terminal buffers (like other kinds of buffers) don't load while they're hidden. Is there any way to load them in background without making them ...
0
votes
0answers
118 views

Is there a command to get out of Terminal mode on Neovim?

I could not get out of my Terminal mode for some reasons, using C-\ + C-n combinations. Maybe since I map the \ to my Leader (I'm not sure)... So anyway I would rather map Esc to the command that ...
1
vote
1answer
73 views

How can I change the cursor moving on ctrlp?

I want to change the key mapping when I run CtrlP. For example, if I press ctrl+p to run CtrlP, type in something, and try to move the cursor to choose a file, I want to use ctrl+j to move down, and ...
0
votes
0answers
29 views

Can I cancel the completion candidate on deoplete?

I use deoplete but whenever I type in something, the completion pops up. It is fine, but that is not what I always resort to. So when I don't need it, I must cancel it by typing control + c, which is ...
0
votes
1answer
105 views

How can I enable the 256 colors on Vim?

I run Neovim on tmux on iTerm2, but now I'm struggling to change the color of my Python code. I use python-mode library to change the syntax of the Python code. However, many colors I try to set got ...
1
vote
0answers
153 views

Use :terminal to display file with ansi escape codes

I want to display a file in Neovim with ansi terminal escape codes interpreted. I created a file which contains ansi escape codes (only colors for now, we can think about others as a bonus): echo '\...