4 ms·
You may be using vim wrong. Good for you if you like it that way
by slim 6y ago
You may be using vim wrong. Good for you if you like it that way
- Lio 6y agoYou're going to have to explain that one because I generally switch back to command mode after every edit so I use ctrl-[ a lot. I'd be VERY interested to hear why that's wrong and what you do differently.
- slim 6y agomy reasoning was : you could have mapped caps lock to ESC but you did not. So maybe you are using CTRL too much (CTRL-V maybe?) which is not the best way to use vim.
- dhagz 6y agoCan't speak for everyone, but I use this[1] keyboard most of the time, and it doesn't have a Caps Lock key to remap, but instead has Control where Caps Lock normally is. So using ctrl-[ is much easier than reaching up to the escape key. [1] https://hhkeyboard.us/pro-classic/ https://hhkeyboard.us/pro-classic/
- Lio 6y agoNo your reasoning is way off. I map to ctrl rather than escape because I want to make use of the Insert and Ex mode ctrl shortcuts. For example, if I want to insert a register into the ex mode command line I use ctr-r <register>. Or if I want to pop out of insert mode for a single command I use ctr-o. E.g. inserting opening and closing tags when a suitable plugin isn't present. Insert the opening and closing tag, jump back to command mode with ctrl-o, move backwards and you're ready to insert more text.
- jng 6y agoUsing Ctrl-[ is perfectly fine if that's convenient to you. Some people doe "inoremap jj <esc>" and double tap j to exit insert mode. If it's faster for you than pressing regular escape, it's an improvement, and thus good.
- Steltek 6y agoPolitely, I'd consider rephrasing this in the future. Not everyone springs forth into the world with a 5kloc .vimrc. Everyone is incrementally learning from someone else at their own pace.
- slim 6y agoI'll do. Thank you. I did not realise I was mean because english is not my native language