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.

1
vote
0answers
34 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
28 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
25 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
19 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
17 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
32 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
405 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
29 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
41 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
61 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
43 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
13 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
53 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
27 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
27 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
35 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
29 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
27 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
29 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
149 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
22 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/...
0
votes
1answer
34 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
30 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
38 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
52 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
30 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
66 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
47 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
22 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
78 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
97 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 '\...
2
votes
3answers
207 views

How to use NeoVim as a pager?

I tried export PAGER="nvim -R", however it does not work for man page, so I export MANPAGER="nvim -c 'set ft=man' -" again, it works. However it still does not work for git log, it looks like below: ...
1
vote
1answer
54 views

How to deal with accented latin characters on neovim

I'm trying to find out how to configure neovim in order to edit texts with accented latin characters. I usually set ambiwidth to double so Jananese symbols are displayed properly, but then neovim ...
0
votes
0answers
51 views

How to recover from swap files correctly on Neovim?

My Mac crashed and was forced to restart. So I opened Terminal, try recovering the file, but struggle to correctly recover the file. Specifically, I tried the following command: nvim ~/.config/nvim/...
3
votes
1answer
67 views

I have a red line that splits my terminal window into tow parts when i open python files, why its there?

As you see in the picture, this is the line I meant. First off, I'm using neoVIM. This line only appears when I try to edit python files. Everything is fine with any other language. I think It's ...
5
votes
1answer
89 views

Pasting emojis 🦄 in Vim or Neovim

Been to trying to figure out why pasting an emoji from the clipboard doesn't paste properly when using ⌘ + v on macOS. I have the following key bindings in my .vimrc vnoremap <M-c> "+y ...
1
vote
1answer
25 views

jobsend sends no data even though return code is 1?

So I am trying to send some json text to a python script with jobsend in neovim like this: let l:json_msg = json_encode(a:msg) call jobsend(s:vimwatcher_job, l:json_msg) If i echo l:json_msg I can ...
2
votes
1answer
83 views

VimScript “unknown function” on a lot of functions

So I have been writing a vim extension but it simply does not make sense to me. I am using nvim and clearly see the function chansend in the documentation yet I get "Unknown function: chansend" when ...
1
vote
1answer
115 views

Cannot find color scheme error in Neovim

I installed Neovim on Windows 8.1 using Chocolatey. But the problem is I cannot see any color scheme as shown in the tutorials. I have cloned a repo from GitHub to ~/.config/nvim/colors/ and it has ...
1
vote
0answers
150 views

As a Total Beginner, Should I Start With Vanilla Vim or with Neovim? [closed]

I am completely new to Vim. I have worked through vimtutor but nothing else so far. If I want to start using Vim for my daily work, should I start out with regular Vim or should I start with Neovim? ...
0
votes
1answer
99 views

How to make the edit command open the file in the first non NERDTree buffer window

so whenever I open a file be it from using FZF, NERDTree or directly using edit, IF I happen to be in the NERDTree buffer it will open the file in the buffer. How do I make it so that whenever a ...
0
votes
0answers
86 views

Neovim stopped taking into account my tabstop setting all of a sudden

I was coding in Neovim, when out of the blue I realized the default 8 spaces were being typed when pressing tab instead of the 4 spaces I have set in my init.vim (I still viewed the tabs that were ...
1
vote
1answer
427 views

Neovim- YouCompleteMe Python completion not working

I recently did a fresh install of Neovim and I'm trying to get YouCompleteMe to work. I installed the plugin with vim-plug with no errors, and followed the instructions on the YCM github page step by ...
0
votes
1answer
107 views

Neovim on Manjaro- No ~/.config/nvim file being created on install

I just installed neovim on a fresh Manjaro install and my ~/.config/nvim directory isn't being generated. I tried uninstalling and reinstalling and I still have the same issue. I also ran a search for ...
0
votes
1answer
40 views

Why is this map added using <Plug> not showing up?

From my .vimrc: nmap s <Plug>(easymotion-overwin-f) This sets up an nmap which invokes the EasyMotion plugin when I type ,s. And that nmap works just fine, and is indeed triggered by ,s. ...
3
votes
1answer
228 views

Neovim `:terminal` not reading .bash_profile

When I start a terminal with the :terminal command, I get this output: ++ parse_git_branch bash: parse_git_branch: command not found ~ $ parse_git_branch is a bash function defined in my ....
1
vote
1answer
94 views

init.vim cannot be found

I hope this question is a duplicate one because I have already tried to find init.vim inside the nvim folder but I am unable to locate the file. Also, would I have to create it explicitly or would it ...
0
votes
0answers
28 views

Neovim sourcing multiple times

I use startuptime to check when open a ruby file with neovim. The output seems to indicate that there is something wrong with my settings: times in msec clock self+sourced self: sourced script ...
1
vote
0answers
41 views

Implement “Press any key to close” in neovim terminal buffer

When running shell commands in a terminal buffer I often just want to examine the output, and then close the buffer. Let's say I call :term ls. How would I implement a simple "Press any key to close" ...