Vim: Custom Folding for special doc
Posted
by
Matthias Guenther
on Super User
See other posts from Super User
or by Matthias Guenther
Published on 2011-01-06T14:09:40Z
Indexed on
2011/01/06
14:57 UTC
Read the original article
Hit count: 221
vim
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.
© Super User or respective owner