Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to read "Mastering Vim"

How to read "Mastering Vim"

『マスタリングVim』の訳者が本書の読み方について解説します。

110cd4dcaed019b3bd9809e541afdeb6?s=128

Masafumi Okura

July 10, 2020
Tweet

Transcript

  1. ϚελϦϯάVim ͷಡΈํ ༁ऀʹΑΔಡΈํΨΠυ Event: Gorilla.vim#13 Date: 2020-07-10 Speaker: େ૔խ࢙

  2. ࣗݾ঺հ • ໊લɿେ૔խ࢙ʢ͓͓͘Β·͞;Έʣ • ઐ໳ɿRuby/RailsʹΑΔ΢ΣϒΞϓϦέʔγϣϯ։ൃʢϑϦʔϥϯ εʣ • ՝֎׆ಈɿGrow.rb, Entaku.rbͳͲͷίϛϡχςΟ΍Kaigi on

    Railsʢ https://kaigionrails.org ʣͱ͍͏େܕٕज़ΧϯϑΝϨϯεͷओ࠵ • ৄࡉ͸ https://okuramasafumi.com ·Ͱ
  3. ࣗݾ঺հʢଓ͖ʣ • Vimྺɿ8೥ • ޷͖ͳVimίϚϯυɿ:vs (:vsplit) • ޷͖ͳVimϓϥάΠϯɿquickrun • ʰϚελϦϯάVimʱ຋༁ऀ

  4. ʰϚελϦϯάVimʱ ʹ͍ͭͯ • Vim/Neovimʹ͍ͭͯͷ࠷΋৽͠ ͍ٕज़ॻʢ2020-07-10࣌఺ʣ • ༷ʑͳτϐοΫΛΧόʔʢਖ਼نද ݱɾGitɾVim scriptͳͲʣ •

    AmazonͰͷϨϏϡʔ͸8݅ɺධՁ ͸4.4
  5. ࠓ೔ͷGorilla.vimࢀՃऀͰط ʹʰϚελϦϯάVimʱΛߪ ೖ͍ͯ͠Δਓͷׂ߹͸…

  6. 100% ʢ͜ͷεϥΠυΛ࢖ͬͯΈ͔͚ͨͬͨͩʣ

  7. ͱ͜ΖͰ

  8. ʰϚελϦϯάVimͷಡΈํʱͱ͍͏ λΠτϧ

  9. ಛఆͷຊͷಡΈํ ↓ ʮҰൠతͳຊͷಡΈํʯ ʴ ʮͦͷຊݻ༗ͷ͜ͱʯ

  10. ҰൠతͳຊͷಡΈํʢେ૔ྲྀʣ • جຊ͸໨࣍Λͬ͟ͱݟ͔ͯΒͷ௨͠ಡΈ • ࠓͷࣗ෼ͷڵຯؔ৺͔Βॏ఺తʹಡΉ৔ॴΛ୳͢ • ॏཁͩͱײͨ͡ͱ͜Ζ͸υοάΠϠʔʢ͓͠ΓΛڬΉʣ͢Δ • ٕज़ॻ͸ؾʹͳΔͱ͜Ζ͸खΛಈ͔͢ •

    Ұ࡭ʹ࣌ؒΛ͔͚͗͢ͳ͍
  11. ϚελϦϯάVimʹ͍ͭͯ • ςΩετΤσΟλͷຊͳͷͰɺखΛಈ͔͢ͷ͸ඞਢ • ಉ͡PythonͷίʔυϕʔεΛ࢖͏ͷͰɺجຊ͸௨͠ಡΈ • ষ͝ͱͷ೉қ౓ͷ͕ࠩେ͖͍ɺಛʹVim scriptͷষʢୈ8ষʣ͸͔ͳΓ ೉͍͠ͷͰॳݟͰ͸ඈ͹͢ͷ΋ख •

    ਖ਼نදݱɾGitɾtmuxͳͲͷτϐοΫΛผϦιʔεͰิ׬͢Δͱཧղ ͕ਂ·Δ͔΋
  12. ϚελϦϯάVimͷಡΈํʢॳ৺ऀ޲͚ʣ • ·ͣ͸ͬ͟ͱ໨Λ௨͢ʢୈ8ষΛআ͘ʣɺVimʹ͋Δఔ౓׳Ε͍ͯΔ ͳΒखΛಈ͔͞ͳͯ͘΋͍͍͚Ͳɺجຊ͸खΛಈ͔͢ • ࠷௿Ͱ΋ୈ4ষ·Ͱ͸಺༰Λཧղ͢Δ • UndoɾQuickfixɾϚΫϩ͸ศརͳͷͰ࢖͍ํΛशಘ͢Δ • ೉͘͠ײͨ͡ͱ͜Ζ΍ڵຯͷ͋Δ෦෼ΛಡΈ௚͢

    • ଞͷຊ΋ԣʹஔ͍ͯࢀর͠ͳ͕ΒಡΉͱΑ͍
  13. ϚελϦϯάVimͷಡΈํʢதڃऀҎ্޲͚ʣ • ·ͣ͸ͬ͟ͱ໨Λ௨ͯ͠શମͷߏ੒Λ௫Ή • ಡΜͰ͍ͯཧղ౓͕଍Γ͍ͯͳ͍ͱࢥͬͨՕॴͷ:helpΛҾ͘ • ୈ7ষ͸ΧελϚΠζʹ໾ཱͭͷͰ͔ͬ͠ΓಡΉͱΑ͍ • ୈ8ষ͸ྲྀ͠ಡΈͰ΋े෼ɺVim script͕ؾʹͳΔਓ͸ʰVim

    scriptς ΫχοΫόΠϒϧʱ͕͓͢͢Ί • ຊॻΛ:help΁ͷ଍͕͔Γͱͯ͠࢖͏ͱΑ͍
  14. ࣭໰ίʔφʔ