A few words of thanks would be greatly appreciated.

Finding a Word in Vi/Vim

Linux is a versatile operating system that allows you to perform a standard Vi word search using different keys on your computer keyboard. This tutorial will list the different keys and functions that you can use to search and find words in Vi/Vim.

How To Find a Word in Vi

To find a word in Vi/Vim, simply type the / or ? key, followed by the word you're searching for.

Once found, you can press the n key to go directly to the next occurrence of the word.

Vi/Vim also allows you to launch a search on the word over which your cursor is positioned. To do this, place the cursor over the term, and then press * or # to look it up.

Image: © Arian Darvishi - Unsplash.com


A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Finding a Word in Vi/Vim », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).
3 vote - 5.0/5


great thanks!

Thank you!