The vim-browse patch offers the possibility to move through the terminal history-buffer, search for strings using VIM-like motions, operations and quantifiers. It overlays the screen with highlighted search results and displays the current operation / motions / search string in the bottom right corner. The patch operates on top of the history-patch, which comes with a set of optional features that can be compiled-in as separate patches. Please leave a star.
Contributions & Bug Reports
A more detailed overview on the commands can be found here and in the file
Enter / Leave different modes:
c: Enter normal mode
i: Enter insert mode or abort current operation / motion
/like in Vim
.re-execute last command (which is shown in the overlay)
a: like in Vim, in conjunction with an operation and motion or pre-defined search char
[backspace]erase last quantifier / letter in search and command string
JScroll buffer up / down
gmove the history cursor to the current insert position / offset
ttoggle rectangle / normal selection mode
Ctrl hhide overlay
- Custom commands can be defined in the configuration files (see
Patching and customization
The VIM patch performs changes in the
config.def.h file, which need to be manually merged into a pre-existing custom
config.h file. The following variables can be adapted from the defaults defined in
buffSize: Size of the buffer history in lines
highlightFg: Background / Foreground color of search results
currentBg: Background color used in order to highlight the current history cursor via a cross
nmKeys: custom commands (= sequence of operations/motion), the first character is the key to be used in order to execute the sequence of operations / motions.
styleSearchstyle of the search string overlay
stylestyles of the command string overlay depending on the currently active operation ([
If you want to try out the current version of the patch before patching your own build, check out this repository, which contains a merged version of this patch with a reasonable configuration.
Version 1 The previous version of this patch is based on the pre-applied Scrollback patch.
- Based on
Based on a custom history patch, which is already applied in the patches below with full set of
history features. A more minimal version of the vim patch can be generated from the st-history repository.
- Based on
- Based on