Vim: Custom Folding for special doc
- by Matthias Guenther
Here is the code:
package localhost
import scala.tools.nsc.reporters._
import scala.tools.nsc.util.Position
class MyReporter extends Reporter {
/** <p>
* Give message of an rejected program
* </p>
*/
def info0(pos: Position, msg: String, severity: Severity, force: Boolean) = {
severity match {
case INFO =>
case WARNING =>
case ERROR => println("error on pos: " +pos+" message: "+msg)
}
}
}
So I want to to fold
/** <p>
* Give message of an rejected program
* </p>
*/
to something like:
/** */
How is this possible?
Thanks for your help.