Hacker News new | past | comments | ask | show | jobs | submit login

Now we just need something like this for Vim. I don't know why, but iTerm 2 + Vim is very slow for me. Holding "j" or "Ctrl + Y" for instance is jerky and slow. Maybe it's just my computer and no one else has this problem, but it's a relatively recent MacBook Pro. I've checked all my settings in .vimrc and Googled the problem, but I can't seem to figure out what is making it so slow.



Try running this and restart your mac:

defaults write NSGlobalDomain KeyRepeat -int 1 defaults write NSGlobalDomain InitialKeyRepeat -int 10

It will setup blazing fast keyboard repeat rate.

I also use this in my .vimrc for even smoother ride:

set scrolloff=999 set scrolljump=-100


In El Capitan I noticed a sluggishness running Emacs in iTerm2, but not in Terminal.app.

I think the new iTerm2(3?) is quite a bit faster, but you probably use that already. Try Terminal.app and see if you notice a difference.


Try Spacemacs. It gives you VIM in Emacs.


So do viper or evil modes. Right in a terminal version, too, if that's your thing.


Spacemacs is not just a mode or a bunch of modes. Building decent evil-based config is not easy and may take years. Every Vimmer I believe should at least try Spacemacs.


Spacemacs is essentially a bunch of config files for evil, btw. I don't know why people mistake it as an entirely other editor.


What plugins do you have installed?

If you run `vim -u NONE` and then open a file, is it still slow when you hold j?


Yep, it's still slow/jerky (although it does seem that disabling relativenumber helps a little bit). I have no idea what the problem is. It could be that I expect perfectly smooth cursor movement, and I'm just not getting that for some reason.


You say "smooth cursor movement". Can you elaborate? What exactly is "slow"? When the screen is scrolling? When the cursor is moving? Spacebar will move the cursor one character forward in normal mode, and follow newlines. If it is the cursor, is it just as choppy if you hold the spacebar?


Did you try using `:set ttyfast` ?


Try using MacVim, it performs much better than using vim with any terminal emulator in OS X.


Try the same thing in gvim, and in another terminal (like OSX's Terminal.app).


Yea, it's called Neovim :D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: