Making a Vim Plugin is not afraid

4d78b749c315e21a956053dcbf0508a9?s=47 po3rin
December 17, 2019

Making a Vim Plugin is not afraid

4d78b749c315e21a956053dcbf0508a9?s=128

po3rin

December 17, 2019
Tweet

Transcript

  1. Making a Vim Plugin is not afraid Gorilla Vim #11

    Dec 17, 2019 @ po3rin
  2. pon ( @po3rin ) Software Engineer ( Go / Python

    / Rust ) in Tokyo. Interested in NLP & Image Processing . Graduated Nagoya Univ (Physics).
  3. Introduction \

  4. Έͳ͞ΜΞυϕϯτΧϨϯμʔࢀՃ͠·͔͢ʁ

  5. 3&"%.&NEॻ͖·͔͢ʁ

  6. ๻ͨͪͷੜ׆͔Β੾ͬͯ΋੾Γ཭ͤͳ͍.BSLEPXOɻɻ

  7. (Pʹ͸HPGNUͱ͍͏ίʔυΛϑΥʔϚοτͯ͘͠ΕΔศ རͳػೳ͕ඪ४ͰඋΘ͍ͬͯ·͢ɻ

  8. ͔͠͠.BSLEPXO͸զΒ͕૬๮ͷHPGNU͕ޮ͔ͳ͍ʂʂ Թ͔Έͷ͋ΔखಈHPGNU

  9. ͦ͜Ͱ.BSLEPXO಺ͷ(PͷίʔυΛݕ஌ͯ͠ HPGNUΛ͔͚ΔπʔϧHPGNUNEΛ࡞ͬͨ

  10. ͜ΕͰϒϩάલͷԼॻ͖΍ɺ3&"%.&NEͷखಈHPGNU ΛຣফͰ͖Δʂʂ

  11. HPGNUNE͸$-*πʔϧ͚ͩͲɺ7JN1MVHJO൛΋ ࡞ͬͯอଘ࣌ʹ࣮ߦͰ͖ΔΑ͏ʹ͍ͨ͠ʂͱࢥ ͍ɺ7JNTDSJQU஌ࣝθϩ͔Β೔Ͱ7JN1MVHJO Λ࡞ͬͨɻ

  12. Gofmt \

  13. .BSLEPXOΛύʔε .BSLEPXOͷϊʔυΛτϥόʔε (PͷίʔυΛݕ஌ HPGNUΛ͔͚Δؔ਺ΛDBMM .BSLEPXO಺ͷίʔυΛॻ͖׵͑ \

  14. ΋͠(PʹΑΔ࣮૷Λ஌Γ ͍ͨํ͸ͪ͜ΒͷهࣄΛ ಡΜͰ͍ͩ͘͞ IUUQTRJJUBDPNQPSJOJUFNTCBGEBB

  15. 7JN1MVHJO͔ΒHPGNUNEίϚϯυΛ࣮ߦ͍ͯ͠Δ

  16. Gofmt \

  17. ͱΓ͋͑ͣ7JN1MVHJO ͷϋϩʔϫʔϧυΛ͢Δ ͜ͱ͕ॏཁʂ࠷ॳʹ஌Δ ΂͖7JN1MVHJOͷ࡞๏͔ ΒσΟϨΫτϦߏ੒·Ͱ આ໌͕͋Δ https://qiita.com/bonjin6770@github/items/31e60707ecf2ad6c4496

  18. ࣮͸)FMMP8PSMEͨ͠ޙԿ࡞Δͷ໰୊ 

  19. Ὂطଘ$-*Λ7JN1MVHJOԽ͕ॳ৺ऀʹΦεεϝ ɾ೉͍͠ࣄͤͣʹ7JN͔Β$-*ΛDBMM͢Δ͚ͩ ɾͦͷׂʹࠓޙͷ7JN1MVHJO։ൃͰجૅʹͳΔ͜ͱֶ͕΂Δ

  20. Addbance \

  21. Ὂ͍͔ͭ͘τϐοΫΛ঺հ͠·͢ ɾ7JN4DSJQUҙ֎ʹ΋ͳΜͰ΋Ͱ͖Δ ɾΦϓγϣϯͷ੾Γग़͠ ɾ/FP7JNରԠ ɾ$*ςετ

  22. ࣗ෼͕ࢥ͍ͬͯͨҎ্ʹ7JN4DSJQU͕ଟ࠼ͳؔ਺Λఏڙ͍ͯͨ͠ɻ ྫ͑͹.BSLEPXO͔Ͳ͏͔ɺࠓ͔Β࣮ߦ͢ΔίϚϯυ͕࣮ߦͰ͖Δ͔Ͳ͏͔ ΛνΣοΫ͍ͯ͠Δɻ

  23. "TTFSUJPOܥͷؔ਺·Ͱ৭ʑ͋ΔɻͷͰςετ΋αΫοͱ͔͚Δɻ Լه͸ϑΝΠϧͷத਎͕Ұக͢Δ͔ͷςετ

  24. อଘ࣌ͷࣗಈ࣮ߦ͸ڧྗͳͷͰΦϓγϣϯͱͯ͠੾Γग़͢ɻ ͪ͜Βͷํ͕7JN1MVHJOͬΆ͘ͳΔ

  25. 7JNͰ࢖͑Δؔ਺Ͱ΋ /FP7JNʹ͸ͳ͔ͬͨΓ͢ ΔɻͦͷͨΊӈͷΑ͏ʹର Ԡͨ͠ɻ/FP7JNޓ׵ͷ͋Δ ؔ਺ϥΠϒϥϦ΋͋ΔΈͨ ͍͚ͩͲɺ਺Χॴ͚ͩͩͬ ͨͷͰͪ͜ΒͰରԠͨ͠ɻ

  26. 7JN΋/FP7JN΋ςετΛ૸Β ͍ͤͨͷͰɺ͜Μͳײ͡ͰKPC Λ̎ͭఆٛ͢Δͱྑ͍ ΋͸΍ ϩʔΧϧͷςετ΋DJSDMFDJί ϚϯυͰճ͠Δ ɻ

  27. Conclusion \

  28. 7JN4DSJQUͷ஌ࣝθϩͷॳ৺ऀͰ΋7*N1MVHJO͕࡞ΕͨɻͳΜͳΒ 7JN4DSJQU͸7JN1MVHJOΛ࡞Γͳ͕ΒֶͿͰ΋ྑ͍͔΋ 7JN1MVHJOΛ࡞ͬͨΒΑ͘Θ͔ΒͣίϐϖͰ࡞͍ͬͯͨWJNSDͷҙຯ ͕ཧղͰ͖ΔΑ͏ʹͳͬͨʂ ๻Ͱ͢Β೔Ͱग़དྷͨͷͰ(PSJMMB7JNʹདྷ͍ͯΔਓ΋͙͢Ͱ͖Δ 

  29. Making a Vim Plugin is not afraid Gorilla Vim #11

    Dec 17, 2019 @ po3rin