Even though your file might not be that long, it can still be a pain to find something you are looking for. Vim has several ways to help you find what you are looking for. Find next occurrence of a word Search for a word by executing the following command in normal mode: ?someWord The command searches backwards in the file for the first occurrence of the word after the question mark. If you are at the end of the file, this is the perfect way to search for a word, but if you were at the beginning of the file it would make more sense to search forward in the file. This is done by exchanging the question mark for a slash: /someWord The word might be in the file several times, and maybe the first place you found wasn't the place you were looking for. No worries, you simply need to press n to go to the next occurrence of the word in the direction of the search. If you would rather change direction, then simply press N instead, and it will instead find the preceding occurrence of the...
Get tips on any operations or functions done on or by the linux operating systems, debian, ubuntu, fedora etc..