Tip #45: Using command-line history
tip karma |
Rating 15/11, Viewed by 1840
|
Read and edit this tip on the
Vim tip wiki.
The wiki may have a more recent version of this tip.
created: |
|
March 12, 2001 9:27 |
|
complexity: |
|
basic |
author: |
|
Anonymous |
|
as of Vim: |
|
5.7 |
You can recall previous command lines from a history table by hitting
the <Up> and <Down> cursor keys in command-line mode.
For example, this can be used to find the previous substitute command:
Type ":s" and then <Up>.
There are separate history tables for the ':' commands and for
previous '/' or '?' search strings.
To display the history of last entered commands or search strings,
use the :his[tory] command:
:his - Display command-line history.
:his s - Display search string history.
For a detailed description of the command-line history refer to:
:help cmdline-history
See also:
:help Cmdline-mode
<< Repeat last changes |
Win32 binaries with perl, python, and tcl >>
Additional Notes
|