Highlight search terms in vim
By default, vim does not highlight search terms, and it can be difficult to find them in the document.
If you're new to Vim, check out our guide on how to get started with Vim.
Posted in these interests:
By default, vim does not highlight search terms, and it can be difficult to find them in the document.
If you're new to Vim, check out our guide on how to get started with Vim.
While editing a file in vim you can temporarily turn on the highlight search option by typing:
:set hlsearch
To automatically highlight search patterns in vim, first edit your .vimrc file:
vim ~/.vimrc
and then add this line:
set hlsearch
You probably already know how to use vim's basic undo and redo features. For a quick refresher, read this short tutorial on how to use vim redo and undo.