Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Vim Basics in 8 Minutes

593.8K views on YouTube

Learn all the basics you need to start editing text in vi or vim.

0:00 – Introduction
0:53 – edit a file in vim (vim filename.txt || vi filename.txt)
1:12 – how to quit vim (:q)
1:50 – saving files in vim, and other ways of exiting
2:12 – what are vim modes (ESC/i)
3:14 – how to delete a single line with vim (dd)
3:30 – how to delete multiple lines with vim (#dd, e.g. 5dd)
3:47 – how to undo changes in vim (u)
4:06 – how to ‘redo’ changes (ctrl-r)
4:32 – searching text in vim ( /yourtext + ENTER)
5:52 – how to find and replace text in vim ( :%s/yourtext/replacetext/g (+c))
7:23 – Conclusion

My step-by-step project-based Linux course for beginners: https://www.udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D

Free Linux Sysadmin Course Playlist: https://www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK

DigitalOcean referral link: https://m.do.co/c/0380a1db56a6

Patreon: https://www.patreon.com/tutorialinux
Official Site & e-mail list: https://tutorialinux.com/
Twitter: https://twitter.com/tutorialinux
Facebook: https://www.facebook.com/tutorialinux
Podcast: http://kernelpanicpodcast.com