How to learn Vi keybindings

Discussion in 'all things UNIX' started by Gullible Jones, Mar 10, 2015.

  1. Gullible Jones

    Gullible Jones Registered Member

    Joined:
    May 16, 2013
    Posts:
    1,466
    It's actually simple, you have to immerse yourself completely.

    Command line: set bash to vi mode (set -o vi) in your bashrc.

    Firefox: Use the Pentadactyl extension.

    Chrome: Use cVim or Vimium. Unfortunately neither are as truly Vi-like as Pentadactyl...

    Editor: set to vim, obviously. If you're feeling brave, enable compatible mode.

    The learning curve is steep, but short; it takes 10 minutes or so for the keys to start feeling natural, during which time you will spout typos all over the place. Once you're past that though, it starts to feel normal pretty quickly.

    Oh, a final hint: you don't have to reach for the Escape key. ^[ (i.e. Ctrl + '[' ) sends a literal escape, in places where Ctrl-c doesn't work.
     
  2. lotuseclat79

    lotuseclat79 Registered Member

    Joined:
    Jun 16, 2005
    Posts:
    5,390
    If that overwealms you, try the vi Manual from the CS dept at FSU.

    -- Tom
     
  3. 142395

    142395 Guest

    VIM was my favorite editor on Ubuntu, I really liked how it can be configured as I like (as well as I don't need to use mouse), but I didn't know those extension.
    So they are basically to use browsers from keyboard?
     
  4. pling_man

    pling_man Registered Member

    Joined:
    Feb 11, 2010
    Posts:
    599
    Location:
    UK
    Don't forget the Vim adventure game.

    http://vim-adventures.com

    I do find with Vim that you need a good quality keyboard to become proficient.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.