News for hackers. Stuff that matters.
Re:Vim Anti-Patterns by sevensor on Wednesday October 05, 2016 @10:51AM (#12644263)
This is good solid advice -- I have a problem with vim advice that golfs more unusual circumstances to save a keystroke or extensively remaps the keys. (Generally the only thing I remap is F1 to ESC, because I use laptops that place them inconveniently close together.) Devoting too many cognitive resources to text entry is also an anti-pattern!
Re:Vim Anti-Patterns by Lxr on Wednesday October 05, 2016 @11:12AM (#12644474)
I highly recommend not using the Esc key, remap to jk or caps lock that you can reach without moving your hands. It makes a pretty big difference.
Re:Vim Anti-Patterns by servlate on Wednesday October 05, 2016 @11:16AM (#12644526)
Even easier to use the default Ctrl + [ instead of ESC.
Re:Vim Anti-Patterns by coldpie on Wednesday October 05, 2016 @11:24AM (#12644620)
I've somehow gotten in the habit of using ^C for Escape. Guess it feels natural from using it in Bash to restart typing my command or to kill a program.
Re:Vim Anti-Patterns by servlate on Wednesday October 05, 2016 @11:48AM (#12644875)
Re:Vim Anti-Patterns by striking on Wednesday October 05, 2016 @01:20PM (#12645794)
That's not equivalent...
Re:Vim Anti-Patterns by cgag on Wednesday October 05, 2016 @12:12PM (#12645145)
Easier than editing a config file, but not easier than hitting jk or kj. Just take the second to map it.
Re:Vim Anti-Patterns by sevensor on Wednesday October 05, 2016 @02:16PM (#12646330)
The reason I'm so reluctant to remap it is that I use vim in a gadjillion different environments, and I don't want to have to worry about managing .vimrc everywhere. Or is it _vimrc? Especially under Windows, when I have cygwin and msys2 both installed, keeping .vimrc synchronized is terrible. I'm more inclined to adopt ^[, since that should work anywhere, even in vi.
Re:Vim Anti-Patterns by jandrese on Wednesday October 05, 2016 @04:47PM (#12647703)
This. Hitting that wall when you're hacking on a file and discover after the fact that your fancy keybind remap isn't on this machine and now it's doing something weird...

Customizations are baggage. I try to minimize them as much as I can, even if it means being a little less efficient on my home system. A side effect is that if a program doesn't have sane defaults I'm not likely to use it, even if it can be made to work better with some tweaking.

I don't go much beyond :syntax on and :set si with Vim.

Re:Vim Anti-Patterns by cgag on Wednesday October 05, 2016 @02:24PM (#12646411)
Fair enough I suppose. I fall back on ctrl-[ if I'm in another environment, but it's rare enough for me to not care about it being an untrained motion.