Vim Text Editor Basics – How to Use Vim on Linux / Ubuntu (Beginners Guide)



Vim Text Editor Basics – How to Use Vim on Linux / Ubuntu (Beginners Guide)

Vim Text Editor Basics - How to Use Vim on Linux / Ubuntu (Beginners Guide)

Learn how to use Vim Text Editor Basics on Ubuntu 22.04 LTS (Linux). Learn the basics including navigate, edit, save, and exit a file using Vim. This Vim Text Editor Basics Tutorial is intended for beginners learning about Vim. Vim Text Editor Basics – How to Use Vim is a great place to start learning commands for Linux.

My Linux Cheat Sheet and 25 Page Checklist here:
📚 https://learn.savvynik.com

Share this free tool and support Small YouTubers
https://editbulk.com
(I made this tool to help creators)

Want more info/content?
https://savvynik.com

Useful Commands from Video:

vim /path/to/file – opens up a current file
vim somefilename – this creates a new file called somefilename

j k h l / arrow keys – to navigate through the file using vim
i – lets you insert text wherever the cursor currently is
o – creates a new line under where your cursor and allows to insert text
:q! – quits out and disregards all changes to the file
😡 – saves and exits out of a file
:/sometext – vim will try to find sometext inside the file
n – will go to the next occurance of sometext
N – will go to the previous occurance of sometext
:5 – this will go to line 5 in the file
dd – will delete the current line where cursor is located
5dd – will delete 5 lines after and including the line where the cursor is
u – this will undo the last change made
shift+g – takes you to the bottom of a file
gg – will take you to the top of a file

#linux #vim #opensource

Comments are closed.