Fix vi_up() to allow going to the first line.
For %, search for a bracket later on the line.
Implement % matching on #if etc.