Vim6スクリプトお勉強スレat UNIX
Vim6スクリプトお勉強スレ - 暇つぶし2ch868:初心者
07/05/02 13:44:56
GVim7で関数のリファレンスの使い方が良く分かりません。下記で次
の現象となります。どこが悪いのでしょうか?

最初にリストを送ります。

 01 if exists("loaded_ShuffleB")
 02     finish
 03 endif
 04 let loaded_ShuffleB=1
 05 command! -nargs=? ShuffleB :call <sid>Map(<q-args>)
 06 function! s:Map(...)
 07     let b:pgname = ["<SID>This1","<SID>This2","<SID>This3"]
 08     let b:Prg=function(b:pgname[1])
 09     imap <buffer> <silent> o O<c-o>:call b:Prg("O")<cr>
 10 endfunction
 11 
 12 function! s:This1(current)
 13     exec "normal o" . a:current . "最初はグー"
 14 endfunction
 15 
 16 function! s:This2(current)
 17     exec "normal o" . a:current . "最初はチョキ"
 18 endfunction
 19 
 20 function! s:This3(current)
 21     exec "normal o" . a:current . "最初はパー"
 22 endfunction



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch