4 ms·
I've used vim, emacs w/evil mode, and currently use VSCode with vim plugin. The editor itself doesn't really matter. Learning mode based editing with vim key
by kromem 3y ago
I've used vim, emacs w/evil mode, and currently use VSCode with vim plugin.
The editor itself doesn't really matter.
Learning mode based editing with vim key bindings absolutely is.
You get like 90% of the benefit that brings with any editor that has good support for vim style interaction.
I still regularly use nvim in my terminal for quick edits here and there, but do my development in VSCode and spend a lot less time managing a config/plugins/etc.
My one suggestion is to change your escape binding to something like 'kj' or an easily accessible two letter sequence that doesn't appear in English text. Your fingers will thank you for it (even if it makes using default setups on systems you don't control a bit disconcerting for 30 seconds).
- bardan 3y agoI used to bind 'jk' to escape but it led to a few problems, in particular I would compulsively use jk as escape on remote systems I hadn't configured myself. In the end I realized I didn't mind ctrl-[ and have used that since.
- yjftsjthsd-h 3y agoI discovered that ctrl-c will go to normal mode, which is apparently rare but is an easy one-hand solution without moving your hand as far (and it doesn't need any config).
- drbaba 3y agoKeep in mind that there is a subtle difference between Ctrl-C and Ctrl-[. The latter is equivalent to Esc, but I think the former will for example prevent abbreviation expansion and block some plugins, which can lead to weird bugs if you’ve customized your Vim a bit. I think you can however `inoremap <C-c> <esc>` locally to make it a bit safer, and just use the default Ctrl-C remotely (if your vimrc is not there then there’s probably no plugins or abbreviations to worry about).
- yjftsjthsd-h 3y agoGood point - IIRC it also breaks some uses of visual mode(?)
- laktak 3y ago> change your escape binding just use caps lock for esc. even the mac supports it.
- drbaba 3y agoPersonally, I prefer caps lock for ctrl. I don’t really mind reaching for esc to switch modes (maybe I just got used to it?), but things like Ctrl-D, Ctrl-], and Ctrl-O in normal mode are quite unergonomic with the default position of Ctrl.