43 ms·
The best line in my whole vimrc is this https://github.com/k0nserv/dotfiles/blob/master/files/vimrc.symlink#L64 https://github.com/k0nserv/dotfiles/blob/master/
by K0nserv 9y ago
The best line in my whole vimrc is this https://github.com/k0nserv/dotfiles/blob/master/files/vimrc.symlink#L64 https://github.com/k0nserv/dotfiles/blob/master/files/vimrc..... It rebinds jk to ESC. This has the nice property of being a NOP if you happen do do it in normal mode
- spraak 9y agoBut what would it do in visual mode?
- Pete_D 9y agoNothing, but you could add a `vnoremap jk <Esc>` line as well to have it leave visual mode if you wanted.
- K0nserv 9y agoI stil use ESC for visual mode, but as @Pete_D points out you could use jk there too, however it's a much more common input in visual mode so it would probably not work as well.