Movement
Arrows, page up/down, home/end keys all work as expected. In addition the following are sometimes useful:
d/u | Move half page forward / backward |
20g | Move to line 20 |
20% | Move to the 20% point |
ma/'a | set markpoint "a" / move to markpoint "a" (also instead of "a" any other lowcase letter) |
Search
/pattern | search pattern forward |
?pattern | search pattern backward |
n | next match |
N | previous match |
/!pattern | search non-matching line |
Esc-u | turn match highlighting on/off |
Misc
= | show info about the file and current position |
! command | execute command and show its output |
s filename | save to file (if the input was a pipe) |
No comments:
Post a Comment