Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Stockholm syndrome: or how I learned to love the editor

69 views

Published on

I gave this talk about Vim as a Language in Futurice (https://futurice.com) Friday Tech Weekly on July 6th

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Stockholm syndrome: or how I learned to love the editor

  1. 1. Stockholm Syndrome with Vim or how I learned to love the editor Futurice Tech Weekly July 6th 2018 Juhis
 @hamatti
  2. 2.
  3. 3. What are we not talking ‘bout today? Plugins How to configure your vim How to use vim Things that every editor has What are we talking ‘bout today? Vim as a Language (aka. why using vim is not a memory game)
  4. 4. :q (or :wqa!) Before we start
  5. 5. Vim as a Language Modes Motions Verbs
  6. 6. Vim as a Language Modes Motions Verbs
  7. 7. Vim Modes Normal (ESC) Visual (v) Insert (i)
  8. 8. Vim as a Language Modes Motions Verbs
  9. 9. Vim as a Language <number><command><text object or motion>
  10. 10. Motions h, j, k, l = left, down, up, right w, e, b = word {, } = paragraph f, F, /, ? = search t = next occurrence ^, $ = start of the line, end of the line gg, G = start of file, end of file :[number] = move to line
  11. 11. Vim as a Language Modes Motions Verbs
  12. 12. delete
 change
 yank around
 inner gu = convert to lowercase
 gU = convert to upper case
 g~ = toggle case Verbs
  13. 13. . = repeat q = record macro : = execute command Extra
  14. 14. Command-based
 => I can record and rerun my actions Great options to manipulate text/ code/data Why do I ❤ vim
  15. 15. https://stackoverflow.com/questions/1218390/what-is-your-most-productive- shortcut-with-vim/1220118#1220118 https://laracasts.com/series/vim-mastery https://vim-adventures.com/ https://medium.com/@mkozlows/why-atom-cant-replace-vim-433852f4b4d1 http://learnvimscriptthehardway.stevelosh.com/ https://pragprog.com/book/dnvim/practical-vim (thanks @cfricke!) http://vimcasts.org/ (thanks @cfricke!) Resources
  16. 16. Thank you! Futurice Tech Weekly July 6th 2018 Juhis
 @hamatti

×