when i write :command BeginFunc -nargs=1 function <args>() it will be ok, i write it in command line: :BeginFunc AAA : echo 'here!' :endfunction
it can work, but when i use it in script, i write the same code, and "so %". Vim remind me i miss the "endfunction" command. but why? i just write the endfunction! and, if i define a command means endfunction, :command EndFunc -nargs=0 endfunction it can't work. it will complain that endfunction is not in function. same issues occurs when i define :if :endif and so on. any idea about it? -------------------------------------------------------------------------------- weasley_wx 2008-11-08 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---