18.01.2020 Views

Working with Linux

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Vim also has a handy shortcut for opening man pages for the word under the cursor. Just hit K and a

man page will show up for that specific word (if there is one, that is):

Finding text in Vim is as easy as hitting /. Just type / + the text to find, and hit Enter to start searching.

Vim will go to the first occurrence of that text. Hit n for next occurrence, N for previous occurrence.

Our favorite editor has a powerful find and replace feature, similar to the sed command. Let's say we

want to replace all occurrences of the string CWD with the string DIR. For this, just type:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!