News for hackers. Stuff that matters.
Re:Vim Anywhere by K0nserv on Friday February 16, 2018 @06:35PM (#16397598)
The best line in my whole vimrc is this 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
Re:Vim Anywhere by spraak on Friday February 16, 2018 @08:19PM (#16398231)
But what would it do in visual mode?
Re:Vim Anywhere by Pete_D on Saturday February 17, 2018 @08:30AM (#16400572)
Nothing, but you could add a `vnoremap jk <Esc>` line as well to have it leave visual mode if you wanted.
Re:Vim Anywhere by K0nserv on Saturday February 17, 2018 @09:02AM (#16400696)
I 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.