SHA2017: Working with Vim

SHA2017: Working with Vim

The slides for the first day of my Vim workshop at SHA2017. They're not particularly useful without the talking and demos, unfortunately.

Fc59401781a26b10f5d4fc5b758fb3b7?s=128

Andrew Radev

August 05, 2017
Tweet

Transcript

  1. None
  2. @AndrewRadev

  3. vim-ruby

  4. twitter.com/Vimlinks

  5. Vim is hard

  6. Vim is hard (in a good way)

  7. Quitting Vim (without the jokes)

  8. Commands • :quit • :edit • :write • Or, :q,

    :e, :w • :help
  9. Questions?

  10. More commands • :split • :vertical • :rightbelow/:leftabove • :tabnew

  11. Commands, Navigation, Editing

  12. Vertical movement

  13. Ctrl + f / Ctrl + b (forward & back)

    Ctrl + u / Ctrl + d (up & down)
  14. <lineno>G

  15. /<search-query>

  16. Horizontal movement

  17. w (word) b (back) e (end)

  18. t<char> / T<char> f<char> / F<char>

  19. H(igh) M(iddle) L(ow)

  20. Questions?

  21. Editing: Visual mode

  22. Text objects

  23. Editing: Insert mode

  24. i/a I/A o/O

  25. Visual mode + d/c

  26. u(ndo)

  27. .

  28. Big idea: changesets

  29. Text objects with c

  30. Questions?

  31. Mapping counts

  32. Settings