Successfully reported this slideshow.
Your SlideShare is downloading. ×

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

Ad

let s:hoge = "s:hoge"

function Hoge(hoge)
   let hoge = "l:hoge"
   python <<EOM
# coding=utf-8
import vim
print vim.eval...

Ad

python <<EOM
import vimutil
@vimutil.vimfunc('Hoge')
def vimutil_hoge(args):
   print “,”.join(args)
EOM
call Hoge(‘a’, ‘b...

Ad

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

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Loading in …3
×

Check these out next

1 of 24 Ad
1 of 24 Ad

More Related Content

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

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

Editor's Notes

  • \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

×