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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
10 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
27 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
21 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
22 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
31 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
18 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
15 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
27 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 ...
0
votes
1answer
72 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
19 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
30 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
25 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
36 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
37 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
27 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
33 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
25 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
16 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
70 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
59 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
109 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: ...
0
votes
1answer
40 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
28 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
53 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
75 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
22 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
44 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
68 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
96 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
76 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
48 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
261 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
71 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
39 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
129 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
51 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
24 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
39 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" ...
0
votes
0answers
60 views

How to load a “local” plugin with Minpac properly?

After moving from Vim-plug to Minpac, the only missing functionality has been to be able to load local paths. Actually I managed to make it work (details below), but I've got the feeling that there ...
1
vote
0answers
51 views

Disable vimdiff syntax highlighting

I have syntax off at the end of my nvim.init file, but no matter how hard I try there is always diffsplit coloring. I would like to disable it because I guess (Neo)vim is very slow with syntax ...
1
vote
1answer
45 views

How to test if certain event is supported?

I want to test is a script if this version of vim supports the "CmdlineEnter" event. This is a relatively new addition in vim and neovim doesn't support it in it's current 0.2.2 version (although ...
0
votes
0answers
38 views

How do I list all (closed) folds?

I want to know which lines are currently visible, excluding lines that are hidden because they are in a closed fold. However, in the docs I couldn't find a function to list all folds for the current ...
0
votes
1answer
111 views

sheerun/vim-polyglot ruby seems cause enormous slow down, how to fix or better plugin to use?

When I open a ruby based file (.rb,.erb) in nvim, it causes my whole laptop to slow down! This seems to be caused by sheerun/vim-polyglot that I use for syntax highlighting, specifically the ruby ...
0
votes
1answer
77 views

Persistent conceal settings through Vim / Neovim restarts

I can successfully toggle between different conceal levels in Neovim, which is rather handy when working with markdown documents. Also, when working with with multiple documents in a Neovim session, ...
-1
votes
1answer
81 views

When provided folder, open default empty screen with CWD set to folder

At the moment when I run nvim path/to/folder/ it opens up the netrw window for it (more accurately, the Dirvish window for it), I'd like this to not be the case. Ideal behaviour is that when I do ...
1
vote
1answer
32 views

How to format quotes, so that Vim breaks long lines into multiple quotes on multiple lines?

For example, suppose I have this line of JavaScript: console.log( "This is a really long line that I want to format, and it is inside of a quote" ) I'd like to select the quote line in VISUAL-...
0
votes
1answer
44 views

How to NOT create a view and session file when viewing man pages

I recently discovered the world of vim session files, and they are awesome for working with multi-file code projects. However, when opening a man page I don't need a session file created for viewing ...
0
votes
1answer
85 views

Add custom section to airline

I want to add section to mu airline that will display the output of a function called SpinnerText() taken from here. I honestly don't really understand how to do it and yes I did look at the ...
0
votes
1answer
25 views

Vim not using variable value when changing a setting

I have the following vimscript: let g:base_path="~/.config/nvim/" let g:plugins_path=base_path."plugins/" let g:repos_path=plugins_path."repos/github.com/" set runtimepath+=g:repos_path."Shougo/dein....