News for hackers. Stuff that matters.
Re:Vim.wasm by jeremyjh on Thursday April 25, 2019 @06:49AM (#19746765)
:imap jk <esc>

Will change your life man.

Re:Vim.wasm by pradn on Thursday April 25, 2019 @12:05PM (#19749528)
I have to shy away from using these remappings because I often work in Vim-emulation mode. It's easier to map CapsLock to ESC system-wide. It works across the several Vim-emulating editors I use.
Re:Vim.wasm by jeremyjh on Thursday April 25, 2019 @05:14PM (#19752576)
I use quite a few as well and they all support it. Actually I don’t use vim much, mostly emacs and vscode but I know it works in IntelliJ, Eclipse and Visual Studio as well. What is annoying though is they all have totally different names and methods of configuration.
Re:Vim.wasm by thomasfortes on Thursday April 25, 2019 @10:15AM (#19748338)
Consciously I know that jk is a better shortcut, but I've been using jj for so long that it's ingrained in the muscle memory, when I started using emacs the first thing that I did with evil was replicate all the shortcuts that I am used to in vim, the first one was jj.
Re:Vim.wasm by dmitryminkovsky on Thursday April 25, 2019 @08:05AM (#19747153)
Hah that’s good one! I need to take a vacation and re-examine my vim life. So many good things to explore and muscle memory to tweak.
Re:Vim.wasm by apetresc on Thursday April 25, 2019 @10:06AM (#19748234)
I wonder if there are any studies that look at how hard it is to permanently readjust muscle memory as you age.

Would I ever (at 31) ever achieve the same fluency with emacs if I switched cold-turkey today as I've developed with vim in my teens and twenties? What about in my fifties?

Re:Vim.wasm by thomasfortes on Thursday April 25, 2019 @10:19AM (#19748386)
I'm 33, switched to emacs the end of the last year, still find the way that vim edit files better, but the ecosystem around emacs has a ton of niceties, so for me the solution was to install evil-mode and configure it to work as close as possible to my vim configuration, but in the end I decided to left some things the emacs way.

Now I sometimes find myself using some of the emacs shortcuts when editing files with vim...

Re:Vim.wasm by stjohnswarts on Thursday April 25, 2019 @12:07PM (#19749553)
Nah when you hit 50 you're basically just a burned out husk and can't learn anything new, not even your muscles.

Love, Silicon Valley

Re:Vim.wasm by satvikpendem on Thursday April 25, 2019 @10:11AM (#19748304)
This is what Spacemacs and I think Evil Mode do as well