関西Vim勉強会#7 lingr.vimとその中身

8,220 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,220
On SlideShare
0
From Embeds
0
Number of Embeds
5,746
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • \n \n
  • 関西Vim勉強会#7 lingr.vimとその中身

    1. 1. let s:hoge = "s:hoge"function Hoge(hoge) let hoge = "l:hoge" python <<EOM# coding=utf-8import vimprint vim.eval(s:hoge) # s:hogeprint vim.eval(a:hoge) # a:hogeprint vim.eval(hoge) # l:hogevim.command(let s:hoge = "s:fuga")vim.command(let hoge = "l:fuga")EOM return hogeendfunctionecho Hoge(a:hoge) " l:fugaecho s:hoge " s:fuga
    2. 2. python <<EOMimport vimutil@vimutil.vimfunc(Hoge)def vimutil_hoge(args): print “,”.join(args)EOMcall Hoge(‘a’, ‘b’, ‘c’) “ a,b,c

    ×