资源简介
.vimrc文件如下请参考:http://blog.csdn.net/chaihuasong/article/details/17380685,里面有c,c++,java等开发的插件和taglist和filexplor等功能。
代码片段和文件信息
namespace Wangfc {
using System;
using System.Reflection;
public class CSParser {
static string tn = null;
static string[] libs ;
static string[] nss ;
static string bas=null;
// mono CSParaser typename libs namespace
// mono CSParaser Assembly d:/mono-1.1.13.4/lib/mono/2.0/mscorlib.dll “System;System.Reflection“
public static void Main(string[] argv) {
if ( argv.Length < 2 ) {
return;
}
if ( argv.Length >3 ) {
bas = argv[3];
}
tn = argv[0];
libs = argv[1].Split(‘;‘);
if ( argv.Length < 3 ) {
nss = new string[1];
nss[0]=““;
}
else {
nss = argv[2].Split(‘;‘);
for ( int i = 0 ; i < nss.Length ; i++ ) {
if (nss[i].Trim().Length==0)
nss[i] = ““;
else
nss[i] = nss[i].Trim()+“.“;
}
}
findType();
}
private static void findType() {
foreach ( string lib in libs ) {
Assembly assem = Assembly.LoadFrom(lib);
if ( assem == null ) {
continue;
}
Module[] module = assem.GetModules();
if (module != null ) {
foreach (Module m in module) {
if (genModule(m)) {
return;
}
}
}
Type[] typeInfo = assem.GetTypes();
int find = 0;
string fchar = “ “ ;
foreach ( string ns in nss) {
string tof = ns+tn;
int len = tof.Length;
if ( bas != null ) {
tof = tof+“.“+bas ;
}
foreach ( Type t in typeInfo) {
if ( t.FullName.StartsWith(tof) &&
t.FullName.IndexOf(‘.‘len+1t.FullName.Length-len-1)<0) {
if (find==0) {
Console.WriteLine(“[“);
Console.WriteLine(“\““+ns+tn+“\““);
Console.WriteLine(“[“);
find = 2;
}
Console.WriteLine( fchar +“[\““+ t.FullName.Substring(len+1) + “\“\““+t.FullName+“\“]“);
fchar = ““;
find += 1;
if ( find>=50) {
break;
}
}
}
if ( find > 0 ) {
Console.WriteLine(“]“);
//constructor
Console.WriteLine(“[“);
Console.WriteLine(“]“);
//methods
Console.WriteLine(“[“);
Console.WriteLine(“]“);
// inner class
Console.WriteLine(“[“);
Console.WriteLine(“]“);
Console.Wr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.....H. 504 2013-12-17 17:56 .vim\.netrwhist
....... 39499 2013-12-17 17:56 .vim\plugin\winmanager.vim
....... 126233 2013-12-17 17:56 .vim\plugin\NERD_tree.vim
....... 13399 2013-12-17 17:56 .vim\plugin\wintagexplorer.vim
....... 4938 2013-12-17 17:56 .vim\plugin\vjde_util.vim
....... 21490 2013-12-17 17:56 .vim\plugin\vjde\readtags
....... 4306 2013-12-17 17:56 .vim\plugin\vjde\vjde_cs_completion.vim
....... 30780 2013-12-17 17:56 .vim\plugin\vjde\vjde.jar
....... 10287 2013-12-17 17:56 .vim\plugin\vjde\vjde_cpp_doc_reader.rb
....... 43020 2013-12-17 17:56 .vim\plugin\vjde\jcommenter.vim
....... 9739 2013-12-17 17:56 .vim\plugin\vjde\vjde_java_completion.vim
....... 128105 2013-12-17 17:56 .vim\plugin\vjde\wspawn.exe
....... 3951 2013-12-17 17:56 .vim\plugin\vjde\vjde_ruby_completion.vim
....... 7821 2013-12-17 17:56 .vim\plugin\vjde\vjde_template.vim
....... 7770 2013-12-17 17:56 .vim\plugin\vjde\vjde_html_cfu.rb
....... 2017 2013-12-17 17:56 .vim\plugin\vjde\tld2xm
....... 28727 2013-12-17 17:56 .vim\plugin\vjde\vjde_java_utils.vim
....... 7315 2013-12-17 17:56 .vim\plugin\vjde\vjde_template.rb
....... 57340 2013-12-17 17:56 .vim\plugin\vjde\project.vim
....... 5745 2013-12-17 17:56 .vim\plugin\vjde\vjde_template_tool.vim
....... 15623 2013-12-17 17:56 .vim\plugin\vjde\vjde_menu_def.vim
....... 42469 2013-12-17 17:56 .vim\plugin\vjde\tipswnd.dll
....... 8128 2013-12-17 17:56 .vim\plugin\vjde\vjde_iab.vim
....... 12441 2013-12-17 17:56 .vim\plugin\vjde\vjde_completion.rb
....... 42717 2013-12-17 17:56 .vim\plugin\vjde\vjde_completion.vim
....... 31944 2013-12-17 17:56 .vim\plugin\vjde\readtags.exe
....... 2762 2013-12-17 17:56 .vim\plugin\vjde\vjde_javadoc.vim
....... 6733 2013-12-17 17:56 .vim\plugin\vjde\vjde_taglib_cfu.rb
....... 5672 2013-12-17 17:56 .vim\plugin\vjde\vjde_cpp_completion.vim
....... 3738 2013-12-17 17:56 .vim\plugin\vjde\tlds\xsl.def
............此处省略86个文件信息
评论
共有 条评论