5 ms·
> just hit "i" to be dropped into insert mode, then just navigate with the arrows and use backspace like in any other editor. Yeah, no. Let me call bullshit on
by ericol 7y ago
> just hit "i" to be dropped into insert mode, then just navigate with the arrows and use backspace like in any other editor.
Yeah, no. Let me call bullshit on you calling bullshit.
I've been working as a mediocre programmer at the same company for the last 10 years. when I landed this job, I had never ever even heard of vi. I was "gently" introduced to it by my boss, and eventually got to kind of get used to a basic usage of it.
But in the box where our server run it is configured to highlight syntax, maintain tabs and shit, delete deletes, you can move using arrow keys, and a slew of other non default niceties.
Over the years I more or less got acquainted with different tastes of Linux, and used and installed it in a few of my own boxes (Debian, mostly).
Even thought vi respects arrow keys by default now it seems (thanks god I don't have to use hjkl. It is hjkl, right?) there's this conf issue that I've never been able to fix _because I don't know how to formulated the question in order to google it_ and it's the fact that when you're in non edit mode, _the cursor never goes to the end of the line_, so if I have to let's say add a new line, and the last word is `return;` I have to convert that to `return;;` put the line jump between the 2 ;; and then remove the extra ;. Plus, arrow keys in non edit mode add lines with crap in it.
I can't even fathom how stressfull would be doing a job interview under this circumstances.
Force a person to use a different OS than they are used to? Well, may be. Even thought I don't like nano, it would be a better choice than vi because at least it beheaves as a "normal" editor.
force a person to use vi with default settings? thank you very much for your time.
- toyg 7y agoI had your same problem for years (I use vi extremely sparingly) and the answer is “a” - which means “append”: it will go to the end of the line and leave you in insert mode after the last character. Found out when I was looking for something else, and improved my quality of life quite a bit. (I still hate distributions where arrow keys in insert mode don’t work like any reasonable human would expect, but they are thankfully getting thinner on the ground).
- PascLeRasc 7y agoThanks, I always thought hitting $+i+right arrow was wrong!
- ericol 7y agoYep, well thanks for that. But imaging having a job interview, you are forced to use an editor you never in your life used and that _doesn't behave as a normal editor_ and you can't even inser a line _normally_.
- recursivecaveat 7y agoIn case you need to use more vim in your life: that's not actually a conf issue, it's just how the 'i'-key behaves. You can use 'a' to open insert mode after the current character, or to more directly get the effect you want, 'o' to create a new line after the current and put yourself in insert mode.