Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just out of interest, how often are you really using the ctrl key in a Vim session? My CapsLock is mapped to ESC, which I hit at the end of every edit (so several times per minute), but I don't think I use ctrl much at all.

OTOH I have heard Emacs users need Ctrl/Alt constantly while editing.



Ctrl+w for switching split windows.

Ctrl+u,d for page up and down.

Ctrl+e,y for shifting the screen up and down.

Ctrl+],t for moving in and out of tags (with ctags).

Ctrl+v for visual block mode.

Ctrl+[ instead of escape.

Ctrl+p,n for autocomplete.

Ctrl+r for redo.

Ctrl+o,i navigate location jump history.

...and probably more that I don't know about.

Additionally:

I have Ctrl+h,l mapped for tab switching.

Terminal multiplexers like tmux and screen use Ctrl for switching terminal sessions.


I use Ctrl+[ instead of escape. This has the benefit of having Ctrl easy to reach for the few shortcuts that do use it and also for other programs.

Actually, on the laptop I'm on, I have Caps Lock mapped to backspace - vanilla unedited colemak layout. On my desktop, I have Caps Lock remapped to LCtrl and LCrtrl mapped to backspace.


I use Ctrl-P/Ctrl-N for autocomplete all the time.


Really should map to tab. Actually should be using super tab or the like.




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

Search: