$30 off During Our Annual Pro Sale. View Details »

IdeaVim is a king by Nemanja Vasic [INIT 2022]

IdeaVim is a king by Nemanja Vasic [INIT 2022]

In this presentation I will speak about my experience with using IdeaVim, how I started, why I am using it and why I think that IdeaVim is a King. I will go through some basic Vim features and at the end I will do a small demo to demonstrate IdeaVim.

About the speaker:
Full-stack developer with 5+ years of professional experience. Motivated to try different technologies in order to contribute to the development of his clients and accelerate their growth.

INIT conference

September 28, 2022
Tweet

More Decks by INIT conference

Other Decks in Programming

Transcript

  1. View Slide

  2. IDEA VIM IS A
    KING

    View Slide

  3. $ WHOAMI
    https://github.com/GoodbyePlanet

    View Slide

  4. PRODUCTDOCK

    View Slide

  5. WHAT THIS TALK IS NOT ABOUT

    View Slide

  6. VIM

    View Slide

  7. IDEA VIM

    View Slide

  8. HOW MY VIM JOURNEY STARTED

    View Slide

  9. VIM AS LANGUAGE
    Verbs (operators), nouns, adverbs
    Verbs => d: delete, c: change, y: yank/copy, p: paste, v:visual
    Nouns => w: word, s: sentence, b: block, t: tag, p: paragraph
    Adverbs => i: inside, a: around, t: until something, f: find something, num:
    number

    View Slide

  10. TEXT OBJECTS
    iw => inner word
    aw => a word
    ip => inner paragraph
    i” => inner quotes
    it => inner tag
    at => a tag

    View Slide

  11. BUILDING COMMANDS
    dw => delete word
    d3w => delete three words
    dt. => delete until dot
    ci( => change inside parentheses
    ct} => change until closing curly bracket
    yip => copy inside paragraph

    View Slide

  12. VIM ESSENTIAL MODES
    NORMAL MODE => Esc
    INSERT MODE => i: Insert, a: Append
    VISUAL MODEL => v, V
    COMMAND MODE => :, /

    View Slide

  13. BASIC MOVEMENTS
    k => move up one line
    j => move down one line
    h => move left one character
    l => move right one character
    w => move by one word forward
    b => move by one word back
    0 => move to beginning of the line
    $ => move to the end of the line

    View Slide

  14. COMBINING WITH NUMBERS
    3j => move three lines down
    3k => move three lines up
    3w => move three words forward
    5$ => move to the end of the fifth line down
    6+ => move six lines down to first non-blank character

    View Slide

  15. BASICS
    :w => write changes to file
    :wq => write changes and exit vim
    :q! => get out of vim (quit), but without saving your changes (!)
    Or better/faster way
    ZZ => write changes and exit vim
    ZQ => get out of vim without saving your changes

    View Slide

  16. DEMO

    View Slide

  17. HOW TO START WITH VIM
    Vim tutor
    Vim adventures
    Copy someone’s .vimrc or .ideavimrc

    View Slide

  18. THANK YOU!

    View Slide

  19. View Slide