docs:vim:creating_php_function_list_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:vim:creating_php_function_list_file [2009/08/15 12:43] billhdocs:vim:creating_php_function_list_file [2009/08/15 15:53] (current) billh
Line 23: Line 23:
 :%s/^[^\\]*\n//g :%s/^[^\\]*\n//g
 </code> </code>
-  - FIXME add the other necessary items, such as removing dollar signs and correct the ending parenthesis issue on some lines; then show how to finish the file and what to name it and where to put it+  - FIXME add the other necessary items, such as removing dollar signs and correct the ending parenthesis issue on some lines; then show how to finish the file and what to name it and where to put it; I'm doing the following in a new window and then executing it on the func file<code> 
 +:g/Description/normal! 5J 
 +:%s/<[^>]*>//
 +:%s/^\s*Description\s*//
 +:%s/^\([^[:space:]]\+\) \([^[:space:]]\+\) (\(.*\)/\\ '\2(': '\3) returns \1',/
 +:%s/^[^\\]*//
 +:%s/^\n//
 +:%s/))/)/
 +:%s/' /'/g 
 +:sort 
 +:sort u 
 + 
 +(we still need to fix a few bugs and clean up &amp; and &quot; values, maybe fixing open ['s too) 
 + 
 +it looks like the file should be called php.vim, and placed in ~/.vim/after/ftplugin/ 
 +</code>
  • docs/vim/creating_php_function_list_file.1250361821.txt.gz
  • Last modified: 2009/08/15 12:43
  • by billh