vim

vim

The bash editor vim

Search a term in vim

vim can highlight search results in the text document. The code to search something is

 

:/searchTerm

 

Remove highlighting from editor after searching a term

As describe above, vim can highlight search results in the text document and they remain highlighted, even after the editor is closed. In order to remove the highlights, this command is used

 

:noh

 

%d bloggers like this: