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
Vim is amazing. Well, Python is doing all the work, but I still like Vim. Learn how to format JSON in Vim like a pro with this short guide! tl;dr Paste your json, and run this in vim normal mode. :%!