Welcome to Rocteur Friday, April 26 2024 @ 09:31 PM CEST
How can you tell what commands you've typed recently:his
:his[tory] Print the history of last entered commands. {not in Vi} {not available when compiled without the |+cmdline_hist| feature}
:his[tory] [{name}] [{first}][, [{last}]] List the contents of history {name} which can be: c[md] or : command-line history s[earch] or / search string history e[xpr] or = expression register history i[nput] or @ input line history d[ebug] or > debug command history a[ll] all of the above {not in Vi}
If the numbers {first} and/or {last} are given, the respective range of entries from a history is listed. These numbers can be specified in the following form: *:history-indexing* A positive number represents the absolute index of an entry as it is given in the first column of a :history listing. This number remains fixed even if other entries are deleted.
A negative number means the relative position of an entry, counted from the newest entry (which has index -1) backwards.
Examples: List entries 6 to 12 from the search history: > :history / 6,12 < List the recent five entries from all histories: > :history all -5,
Also, your / register contains the LAST thing you searched for
FAQ Manager » Vim » How can you tell what commands you've typed recently
|