Welcome to Rocteur Friday, April 26 2024 @ 05:53 PM CEST
How to delete items from your command history:call histdel
histdel({history} [, {item}]) *histdel()* Clear {history}, i.e. delete all its entries. See |hist-names| for the possible values of {history}.
If the parameter {item} is given as String, this is seen as regular expression. All entries matching that expression will be removed from the history (if there are any). Upper/lowercase must match, unless "\c" is used |/\c|. If {item} is a Number, it will be interpreted as index, see |:history-indexing|. The respective entry will be removed if it exists.
The result is a Number: 1 for a successful operation, otherwise 0 is returned.
Examples: Clear expression register history: > :call histdel("expr") <
FAQ Manager » Vim » How to delete items from your command history
|