C:\jdk5> jar xvf src.zip java/lang/String.javaIt basically looks like this:
inflated: java/lang/String.java
C:\jdk5> gvim java/lang/String.java
public boolean equals(Object anObject) {I then save this template in C:\tmp\equals.txt. Next time I need it inside vim, I just read it into vim with
if (this == anObject) {
return true;
}
if (anObject instanceof String) {
xxx anotherString = (xxx)anObject;
//compare the states of two objects
}
return false;
}
:r /equals.txt
.Tags: