Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1293  / 1 Year ago, fri, november 18, 2022, 12:45:36

When I do search in gVim (package gnome-vim), the search results are highlighted. How can I turn-off this highlighting when I don't need it any longer? Now it looks like persistent.


More From » vim

 Answers
2

You can disable search results highlighting by command :nohl. If you want to have this command under one keystroke, put the following lines into your ~/.vimrc configuration file:



" press F8 to turn the search results highlight off
noremap <F8> :nohl<CR>
inoremap <F8> <C-o>:nohl<CR>


Now you can press F8 to toggle search result highlighting on and off in both edit and insert mode.


[#23780] Friday, November 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odyroc

Total Points: 324
Total Questions: 109
Total Answers: 103

Location: Belize
Member since Mon, Apr 17, 2023
1 Year ago
;