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.

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

  • Be the first to comment

関西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

×