root/lang/vim/ruby/say.vim @ 34409

Revision 14722, 301 bytes (checked in by ujihisa, 5 years ago)

move misc rubied-vimscripts to ruby directory

Line 
1
2command! Say :call <SID>Say()
3
4function! s:Say()
5  ruby say
6endfunction
7
8ruby << EOF
9def say
10  require 'pathname'
11  filenames = (0...VIM::Buffer.count).map {|i|
12    Pathname.new(VIM::Buffer[i].name).basename
13  }
14  system(%Q!echo say #{filenames.join(", ")} | /bin/sh &!) # magick! by ujihisa
15end
16EOF
Note: See TracBrowser for help on using the browser.