Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim Escape Seconds Delay #3271

Open
srchulo opened this issue Oct 28, 2018 · 12 comments
Open

Vim Escape Seconds Delay #3271

srchulo opened this issue Oct 28, 2018 · 12 comments

Comments

@srchulo
Copy link

srchulo commented Oct 28, 2018

  • [x ] I am on the latest Hyper.app version
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10 - Version 10.0.17758 Build 17758
  • Hyper.app version: Hyper 2.0.0
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/srchulo/efaf2b7ee07b70f1e0d9f9d7b3bb80be
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
  • The issue is reproducible in vanilla Hyper.app: I believe this is true. I tried to return .hyper.js to its original state.

Issue

Whenever I use Hyper instead of PuTTY, I get a seconds long delay when I hit esc in Vim to leave insert mode. This currently makes Hyper pretty hard for me to use, as using Vim is a real pain.

@hulucc
Copy link

hulucc commented Oct 30, 2018

This is not a problem of hyper, set ttimeoutlen in your vimrc

@srchulo
Copy link
Author

srchulo commented Oct 30, 2018

The thing is that I have no escape delay with Vim in PuTTY, or the command prompt. I also don't have a delay when I use terminal on my Mac, even SSH'ed into the same server.

@srchulo
Copy link
Author

srchulo commented Oct 30, 2018

Also, I did try setting ttimeoutlen based on some forum posts. Is there a specific value you recommend trying?

@hulucc
Copy link

hulucc commented Nov 1, 2018

Try 10 or 50.

@srchulo
Copy link
Author

srchulo commented Nov 4, 2018

I tried 10, and I still see a pretty seriously delay that I don't see in other terminal applications.

@Zashas
Copy link

Zashas commented Nov 15, 2018

I'm also having this issue (Win 10 and Hyper 2.0.0, as the author).

@brw
Copy link

brw commented Nov 16, 2018

Same here, also Windows 10 and Hyper 2.0.0. A delay of about a second or two which isn't there in other terminal emulators. Ctrl+C does not have a delay, Escape and Ctrl+[ do. Started happening a few days ago (not sure when exactly), worked fine before that. Even with a clean Hyper and Vim installation it still happens now.

@srchulo
Copy link
Author

srchulo commented Nov 17, 2018

For others on this thread, I've remapped my esc while in insert mode (these go in .vimrc):

# jj to escape
inoremap jj <Esc>`^

# jk to esc and save (:w)
inoremap jk <Esc>`^:w<CR>

## lkj to esc save and quit (:wq or ZZ)
inoremap lkj <Esc>`^:wq<CR>

There's no lag with jj for esc. The only problem is there are times I still have to use esc, like in visual mode.

@hulucc
Copy link

hulucc commented Nov 19, 2018

Also try:

nnoremap <esc> <esc>

@srchulo
Copy link
Author

srchulo commented Nov 20, 2018

@hulucc , thanks for the suggestion, but unfortunately, that doesn't seem to work either. Maybe the other people on this thread can mention if it works for them?

@ecielam
Copy link

ecielam commented Nov 21, 2018

see also: #2922

This is absolutely an issue with hyper, or an upstream (per the above issue) ... It doesn't happen in any other terminal I have tested. I can't say for sure, but I also don't think this was a pre 2.0 issue, as it worked fine when I started using Hyper, but broke right around the 2.0 upgrade.

but either way, it's a blocker for using Hyper under windows 10 right now. Perhaps nobody cares since it's Windows. I'll keep using other terminals for now until someone actually fixes this.

@srchulo
Copy link
Author

srchulo commented Nov 21, 2018

This issue also says that they experienced hyper in general being slow after the 2.0 update:

#2838

I feel as though I've seen that, too (general slowness), in addition to this esc issue. I don't know if they're related or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants