A ha It works! Thank you so much. The "profile! file **" command only affects to script loaded after this command. That is a bit inconvenient.
2009/6/7 Stahlman Family <[email protected]> > > > dr-dr xp wrote: > > Hello I have some questions about profiling vim scripts > > I wanna profile a script that mapping some keys to execute something > (call > > functions, or else..), but I have never get vim to output profile result > > file. > > The `profile start' command simply sets up the logging to a file. You > must then use either `profile func' or `profile[!] file' to tell Vim > what to profile. Note also that the output won't be written to the file > until Vim exits. > > Brett Stahlman > > > What I do is : > > vim abc.c > > :profile start prof.abc.c > > <do something..> > > :wq > > And then I got an empty file prof.abc.c. Did I miss anything? > > > > > > > > -- 要了几天饱饭就不记得西北风啥味了 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
