Live data from Hacker News

Vim – Minimal Setup Explained

guckes.net

11–20 of 114 posts

Re: Vim – Minimal Setup Explained

#11

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

Not a great answer, but I switched Cap with Esc and it took several months before I was hitting Esc automatically like you might Ctrl + s a document when stopping typing.

Re: Vim – Minimal Setup Explained

#13

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

I use either karabiner on my laptop or map it in my keyboard firmware (mostly drive QMK boards for the last few years) to swap caps lock to escape on tap and control on hold. Makes vim life great. Also means that using ctrl+a as a tmux leader is comfortable to type.

Re: Vim – Minimal Setup Explained

#15

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

I’ve never found a problem with it. Right at the corner, it’s easy to hit with my left ring finger, sitting perfectly at a comfortable distance (based on where I rest my hands) for a slap in that general direction.

(I use my Caps Lock as Backspace. Backspace near the top right is vastly less comfortable to reach than Escape in the top left.)

Re: Vim – Minimal Setup Explained

#16
post #14

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

Once I found out CTRL-[ did the same thing I haven't hit ESC since.

I wish Ctrl+[ wasn't tied to Esc. I hit that often instead of Ctrl+P. Haven't yet found a way to map Ctrl+[ to Ctrl+P without affecting behavior of Esc as well.

Re: Vim – Minimal Setup Explained

#17
See also `:h defaults.vim-explained` (https://vimhelp.org/usr_05.txt.html#05.3) which now comes by default.

You can either copy the settings you are interested in or source it entirely in your vimrc file:

    source $VIMRUNTIME/defaults.vim
---

Here's some more related resource links:

* stackoverflow: useful .vimrc tips - (https://stackoverflow.com/q/164847/4082052)

* vi.stackexchange: How do I debug my vimrc file? - (https://vi.stackexchange.com/q/2003/1616)

* vim-sensible - (https://github.com/tpope/vim-sensible)

* minimal vimrc for new users - (https://gist.github.com/benmccormick/4e4bc44d8135cfc43fc3)

* Vim Configuration From Scratch - (https://marcgg.com/blog/2016/03/01/vimrc-example)

* vimconfig: generate `.vimrc` by selecting options - (https://vimconfig.com/)

Re: Vim – Minimal Setup Explained

#18

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

Esc is probably the easiest key to hit in the keyboard? Tied with bottom left ctrl/fn and whatever you have in the other two corners. As in it's the easiest to misclick without accidentally hitting other keys

Re: Vim – Minimal Setup Explained

#20

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

Its the weakest part of the vim keyboard scheme IMO for ergonomics, and switching modes in general. I wish there was an alternative that gave a nod to vim but remained in 'input' mode without loss of capability, you know...without having to be vscode. If the key layout wasnt even worse, and it wasn't a bloated mess (on windows at least) I'd have switched to Emacs. Capslock is mostly a redundant button so I wholey support remapping it and for me is the only sensible way to use vim, binding to jj is hacky and plays up often and is inefficienct, and ctrl+] is insanity for such a regular press. Caps as Esc is useful in games when remapped to esc too for speedy pausing or simply pressing it by accident to kill you in a gunfight lol struggles
Post reply on HN