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

Emacs meets Vim

Emacs meets Vim

ゴリラ.Vim #5 で話した資料です。
https://gorillavim.connpass.com/event/131984/

Nobuyuki Nishiyama

June 13, 2019
Tweet

More Decks by Nobuyuki Nishiyama

Other Decks in Programming

Transcript

  1. &NBDTNFFUT7JN
    ΅ͬͪήʔϜσϕϩού
    ੢ࢁ৴ߦɹ

    View full-size slide

  2. wήʔϜۀքͰ೥͘Β͍ήʔϜ࡞ͬͯ·͢
    w1$ɺՈఉ༻ήʔϜػɺεϚʔτϑΥϯɺϒϥ΢
    βʜ৭ʑखֻ͚͍ͯ·͢
    w࠷ۙ͸ઐ໳ֶߍͰڭ͑ͯ΋͍·͢
    wຊ৬͸΅ͬͪήʔϜσϕϩούͰ͢ʂʂʂ
    ࣗݾ঺հ

    View full-size slide


  3. ੿࡞ΞϓϦʮύζϧˍϞφʔΫʯ
    ສμ΢ϯϩʔυಥഁ

    View full-size slide

  4. ίϛοΫϚʔέοτ
    ݄೔ ݄

    ϝC
    ॳग़ల

    View full-size slide

  5. &NBDTNFFUT7JN
    &NBDTΛ೥Ҏ্࢖͍ͬͯΔਓ
    ͕7JNʹग़ձͬͨ࿩

    View full-size slide

  6. wগͳ͍ϝϞϦͰαΫαΫ
    ಈ࡞
    wϚΫϩݴޠͰಈ࡞Λ֦ு
    Ͱ͖Δ
    w։ൃ؀ڥ͕8JOEPXT΁Ҡ
    ߦʹͳͬͯٽ͘ٽ͘࢖༻
    ΛఘΊΔ
    .4%04࣌୅

    View full-size slide

  7. wαʔόʔͷઃఆϑΝΠϧΛฤू͢Δͷʹඞཁͩͬ
    ͨͷͰWJͷ࢖͍ํΛ֮͑Δ
    w೥લޙɺ(6*ܦ༝Ͱૢ࡞Ͱ͖Δ-JOVY͕΄
    ΅ແ͘ɺख୳Γঢ়ଶ
    ϑΝʔετίϯλΫτ

    View full-size slide

  8. WJศར͚ͩͲʜ ͏·͘ݴ͍දͤͳ͍

    View full-size slide

  9. w7[ͱࣅͨΩʔόΠϯυͰ
    αΫαΫಈ࡞
    wϚΫϩݴޠͰಈ࡞Λ֦ு
    Ͱ͖Δ
    wύεͷѻ͍ʹෆ۩߹͕ग़
    ࢝Ίɺ࢖༻ΛఘΊΔ
    8JOEPXT࣌୅

    View full-size slide

  10. ߦ͖٧·Δ
    ࣗ෼޷ΈͷςΩετΤσΟλ͕ݟ
    ౰ͨΒͳ͍ʂ

    View full-size slide

  11. ࠔͬͨ
    8JOEPXTͱNBD04ͷ྆ํͰ࢖͑
    ΔΤσΟλ͸ແ͍΋ͷ͔ʁ

    View full-size slide

  12. ࠔͬͨ࣌ͷઌഐཔΈ
    ઌഐʮ&NBDT͕͋Δ͡ΌΜʯ

    View full-size slide

  13. w8JOEPXTͱNBD04ͷ྆ํͰ࢖͑Δ
    w࣭໰Ͱ͖Δਓ͕਎ۙʹ͍Δ
    wࣗ෼޷ΈʹΧελϚΠζՄೳ
    &NBDTΛબΜͩཧ༝

    View full-size slide

  14. ͠͹Β͘࢖ͬͯΈͯ
    ͚ͬ͜͏͍͍͡ΌΜʂ

    View full-size slide

  15. w8JOEPXTͱNBD04Ͱ͔ͳΓڍಈ͕ಉ͡
    wؾʹೖΒͳ͍ڍಈ΍଍Γͳ͍ػೳΛࣗ෼Ͱ௚ͤ
    Δ
    worg-mode͕ΊͪΌͪ͘Όྑ͍
    wmagit͕ΊͪΌͪ͘Όྑ͍
    FNBDTྑ͍

    View full-size slide

  16. wΩʔόΠϯυΛ֮͑Δͷ͕͠ΜͲ͍
    w֦ுػೳΛ૿΍͢ͱΩʔόΠϯυ͕িಥ͢Δ
    wΈͳ͞Μࢥ͍ࢥ͍ͷΩʔόΠϯυͳͷͰɺωοτ
    ্ͷهࣄΛࢀর͢Δͱ͖ʹۤ࿑͢Δ
    wখࢦʹҧ࿨ײΛ֮͑Δ
    &NBDTඍົ

    View full-size slide

  17. wΩʔόΠϯυ͕͖֮͑Εͳ͘ͳ͍ͬͯΑ͍Αߦ
    ͖٧·Δ
    ͦͯ͠·ͨߦ͖٧·Δ

    View full-size slide

  18. ࠔͬͨ
    ΩʔόΠϯυͰۤ࿑͠ͳ͍ΤσΟ
    λ͸ແ͍΋ͷ͔ʁ

    View full-size slide

  19. ࠔͬͨ࣌ͷωοτཔΈ
    ωοτʮ͜ΕΦεεϝʯ

    View full-size slide

  20. w7JNͷΩʔόΠϯυͰૢ࡞Ͱ͖Δ&NBDT
    wͦͷଞΦεεϝͷ֦ுػೳͷ٧Ί߹Θͤύο
    έʔδ
    wখࢦ͕௧͘ͳΒͳ͍ΩʔόΠϯυ
    TQBDFNBDTͱ͸

    View full-size slide

  21. w(JU)VCͷϦϙδτϦ ઃఆϑΝΠϧ܈
    ΛΫϩʔ
    ϯ͢Δ͚ͩ
    w&NBDTຊମ͸ͦͷ··
    ࢖͍ํ͸؆୯ʂ

    View full-size slide

  22. w7JNͷૉ੖Β͍͠ΩʔόΠϯυͱػೳ͕࢖͑Δ
    w&NBDTͷ֦ுػೳ͕Ҿ͖ଓ͖࢖͑Δ
    w ಛʹorg-mode͕ʂ
    w ಛʹmagit͕ʂ
    TQBDFNBDTͷྑ͍ͱ͜Ζ

    View full-size slide

  23. w7JNͷΩʔόΠϯυͱিಥ͠ͳ͍Α͏ʹྑ͘࿅Β
    ΕͨΩʔόΠϯυ
    w 41$GGϑΝΠϧΛ։͘
    w 41$GTϑΝΠϧอଘ
    w 41$RRTQBDFNBDTऴྃ
    ΩʔόΠϯυ͕ૉ੖Β͍͠

    View full-size slide

  24. w&NBDTʹ΋ͱ΋ͱଘࡏ͠ͳ͍ૢ࡞΋ػೳ֦ுͱ
    ͯ͠࡞ΓࠐΜͰ͋Δ
    w 7JNͷςΩετΦϒδΣΫτͱ͔
    w ࣄલʹ਺஋Λೖྗͯ͠ૢ࡞Λ܁Γฦ͢΍ͭͱ͔
    w :wͱ͔:q!ͱ͔΋͍͚Δ
    ୯ͳΔΩʔόΠϯυʹཹ·Βͳ͍

    View full-size slide

  25. 7JN࠷ߴ
    7JNͷૉ੖Β͠͞ʹ͍ͭͯ͸ॾઌ
    ഐํͷํ͕ৄ͍͠Ͱ͢Ͷʂ

    View full-size slide

  26. 7JN͸ૉ੖Β͍͠
    &NBDT࢖͍͕7JNʹग़ձͬͯײ
    ಈͬ͠ͺͳ͠Ͱ͢

    View full-size slide

  27. ࢥΘ͵෭࡞༻͕
    7JN͔͠࢖͑ͳ͍ঢ়گͰ΋αΫα
    ΫฤूͰ͖Δʂ

    View full-size slide

  28. ࢥΘ͵෭࡞༻͕
    ଞͷςΩετΤσΟλʹ7JNΩʔ
    όΠϯυઃఆ͕͋Δͱخ͍͠ʂ

    View full-size slide

  29. ͜Ε͸ͭ·Γʜ

    View full-size slide

  30. &NBDTΛܟԕ͍ͯͨ͠ਓͨͪʹ
    TQBDFNBDTΛקΊΔνϟϯ
    εʂʂʂʂʂʂ

    View full-size slide

  31. ͱ͍͏༁Ͱʜ
    7JN࢖͍ͷΈͳ͞Μ΋ੋඇ
    &NBDTʜ΋ͱ͍TQBDFNBDTʹ৮
    ΕͯΈ͍ͯͩ͘͞

    View full-size slide

  32. ࠷ޙʹTQBDFNBDTͷαΠτͷจ
    ݴΛҾ༻ͯ͠కΊ·͢

    View full-size slide

  33. The best editor is
    neither Emacs nor Vim,
    it's Emacs and Vim!

    View full-size slide