We look at how to find the last time time the search argument found in the document, and the first time the search argument is found in the document
We then look at a couple of ways to turn off the search highlighting (:set nohlsearch, :nohl, :noh) and to turn it back on using :set hlsearch
We also look at how to turn off the incremental search with :set noincsearch and how to turn that back on with :set incsearch
We also look at how to scroll through previous forward search by pressing the forward slash "/" and the arrow up and arrow down keys, the reverse searches by pressing the question mark "?" and then the arrow up and arrow down keys, and we can even search through the previous commands by pressing the colon ":" and then use the arrow up and arrow down keys. Pressing escape gets me out without resubmitting a search or command.
Lower case "q" then pressing forward slash "/" will open a window of our forward search history, we can use vim standards to change a search values and resubmit it by pressing enter or pressing colon ":" lower case "q" to quit out of it. This also works for backward search (lower case "q" question mark "?") and commands (lower case "q" and colon ":")
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
5 Comments