Search edit commands

Search edit commands access your command history as follows:


Item Description
[Count]k Fetches the previous command.
[Count]- Equivalent to the k command.
[Count]j Fetches the next command. Each time the j command is entered, the next command is accessed.
[Count]+ Equivalent to the j command.
[Count]G Fetches the command whose number is specified by the Count parameter. The default is the least recent history command.
/String Searches backward through history for a previous command containing the specified string. The string is terminated by a RETURN or newline character. If the specified string is preceded by a carat (^), the matched line must begin with the String parameter. If the value of the String parameter is null, the previous string is used.
?String Same as /String except that the search is in the forward direction.
n Searches for the next match of the last pattern to /String or ? commands.
N Searches for the next match of the last pattern to /String or ? commands, but in the opposite direction. Searches history for the string entered by the previous /String command.