I don’t really get what’s happening here. All the other keys work correctly, but this one is getting real lag. My init.vim doesn’t do anything special (it maps c to move left).
Do you have another key mapping in your init.vim that uses c + some other character? Something like nnoremap cc <esc> will make vim pause for 1 second while it waits for you to press the second character.
Is there a similar feature as in atom that shows every commands / functions triggered by a key when hitting it?
:map c will list any commands that you have mapped to c but as far as I know it won't also show you mappings that start with c.
So just to be sure, you are not getting the 1 second lag when you use nvim in the terminal?
Edit: you can run :map to see all of your key mappings, including plugins.
Seems to be fixed if I set the defaultConfig to false. And no, it’s in Oni that it’s logging.
Well, not really, since now I have the nvim UI inside Oni. Dammit! :dancer:
This wiki page has some instructions on how to make oni behave more like vanilla vim: https://github.com/onivim/oni/wiki/How-To:-Minimal-Oni-Configuration
If you set defaultConfig to false, you'll want to also include something like
if exists('g:gui_oni')
set nocompatible " be iMproved, required
filetype off " required
set number
set noswapfile
set smartcase
" Turn off statusbar, because it is externalized
set noshowmode
set noruler
set laststatus=0
set noshowcmd
" Enable GUI mouse behavior
set mouse=a
endif
... in your init.vim
Thanks, I’ll try it!
Ok, it’s definitely better, thanks! Final, not related issue: is there a way to remove the left-most panel? I use the "sidebar.toggle" command but it doesn’t remove the left-most panel, only the Explorer.
You'd need to use "sidebar.enabled": false, to disable the sidebar, though that will fully disable it, rather than just hide it.
It still keeps showing up. (the big one with icons)
You'll need to reload Oni I think for that to take hold, but now that I've tried it out, there is a few bugs with it (that are being fixed over in #1564 and logged in #1562).
However, this is what it looks like once you've set it:

Yay, it worked after reloading! Thanks! :heart:
@phaazon Can you tell if hitting c is lagging in normal neovim?
It’s not.
I did the :map c, there’s only * h…
Now that I think about it....this is probably due to https://github.com/tpope/vim-surround, which is loaded as part of the default config.
It contains a binding for cs which could be causing the delay @parkerault is talking about. This seems to be the case if disabling the default config fixes it, since that would stop loading the plugin. If we wanted to be certain, if you post the mapping you are using we could do some tests with that plugin installed for terminal vim etc.
Good catch, @CrossR - that seems like a likely culprit!
Oh yeah, it’s very likely!
Well, unless we are going to track the lagging issue that seems specific to Oni we can close this.
Sure, thanks again!
Most helpful comment
Now that I think about it....this is probably due to https://github.com/tpope/vim-surround, which is loaded as part of the default config.
It contains a binding for
cswhich could be causing the delay @parkerault is talking about. This seems to be the case if disabling the default config fixes it, since that would stop loading the plugin. If we wanted to be certain, if you post the mapping you are using we could do some tests with that plugin installed for terminal vim etc.