- 868 名前:初心者 [2007/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
|

|