62

Disabled fucking arrows keys in vim. Life is hell now.

I will be posting a lot more rants from now on as I am learning vim so bear with me.

Comments
  • 3
    I still don't know how to exit VIM 😂
  • 6
    vim is love.
    vim is life.
  • 1
    How do you move around in insert mode without the arrow keys?
  • 7
    @ocab19 don't. If you're moving around in insert mode then you're not getting in to the vim mindset at all. Moving around in normal mode is much quicker once you get a few key motions in your head.

    Not getting in to the mindset of vim is basically the biggest problem with people thinking it's somehow terrible.
  • 1
    @waqas-ibrahim Link to tutorials?
  • 1
    Vim is awesome. It's like learning to the play the piano - hard, but rewarding
  • 0
  • 1
  • 3
    @demiko I am with the vim and the vim is with me <repeat>
  • 2
    @paranoid besides vimtutor lookup vim on youtube. Tmux+vim by nick nisi is pretty good and its what i first watched when i decided to switch
  • 1
    That's the first step. I also disabled key repeat on my keyboard so that I don't just press hjkl for long times but use repeat (5j) and search (/) and word jumps more regularly.
  • 0
  • 3
    Real programmers use a brain-usb-adapter, not a keyboard.
  • 0
    @BernzSed I'd love to have this. I would write so much more code if I could just think it somehow into my computer. It always tires my hands to type so much and I could concentrate more on the actual problem than on navigating through the code.
  • 0
    I don't get why I should have to use a tool a certain way. I usually move most of my time in normal mode anyways but I'm used to the arrow keys and I don't see why I shouldn't use them.
    Besides that you don't move by single characters anyways. Most of the time I move by searching identifiers or going to lines directly. I rather move through the code semantically than by text.
  • 2
    @gofrendi hjkl is just as good as arrow keys.

    For navigating I consider their usage as an anti-pattern.

    For scrolling, there is Ctrl+F and Ctrl+B. For jumping in sentences there is word navigation like w, b, e, and ge or character search via f{char} or t{char}.

    And of course, don't forget helpers like gg and G, and 0 and $.

    I also grew fond of H, M, L (high, middle, low).

    Also don't forget that you can enter insert mode above the current line via O and below it via o.
  • 0
    @paranoid I iust started learning and someone suggested vim+tmux by nick nisi on youtube to watch first. I didn't get everything, it will require many rewatches. Actually he gave me the idea to disable arrows keys as he did the same himself when he starred learning. Also I started vim series on laracasts.
  • 0
    @Zaphod65 meh. Sometimes is easier to move two characters forward with the arrow keys than to press Esc+l+l+i.

    I'm an advocate vim user, but I don't want to be forced to use it in some specific way, just the way that's more efficient or more comfortable for me.
  • 0
    @k0pernikus This is why I prefer nano. (Stone me.) No need to learn this and that and not forget x, y and z. However I only need it for messing with configs now and then, so it would probably take years for the investment of learning vim to break even. I can manage to find my way around the very basics though, if I end up with a fresh (offline) system that only provides vi(m).
Add Comment