Because I suck at bash
(Yes, vim is not bash but I didn’t feel like making an entirely new setup just for vim.)
Source: https://linuxize.com/post/vim-search
/foo will search for the next word that contains "foo"?foo will search for the previous word that contains "foo"/\<foo will search for the next word that starts with "foo"/foo\> will search for the next word that ends with "foo"/\<foo\> to search for the exact word "foo"n to go to the next result, and N to go to the previous result.You can also search for the “current word” (meaning the word the cursor is currently “on”) by pressing:
* to search forward# to search backwards* and # repeatedly to search for the next or previous occurrence of said word/ or ? and use the up and down arrows to see the previous search historyBy default searches are case sensitive.
You can change the case sensitivity behaviour from either the vim command line or the ~/.vimrc like so:
:set ignorecase/ic to… ignore the casingset: noignorecase/noic to make it case sensitive againIf you manage to download a file with windows line endings (^M errors) do the following:
:set ff=unix:wq)