DEV Community

VIM - Beginners Guide

Vishwa Mittar on October 03, 2021

Introduction VIM is a text editor for writing code, where you navigate around the screen with the Keyboard instead of a Mouse. It is bas...
Collapse
 
phantas0s profile image
Matthieu Cneude

That's super concise, I like that :) you should continue to write about it.

I've written a guide to learn Vim too, but it's more verbose. If somebody is interested: thevaluable.dev/vim-beginner/

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Thank you.
I just went through your link, it's explained very well, I loved it. Great efforts man!

Collapse
 
eljayadobe profile image
Eljay-Adobe

I've been using Vim for over 20 years.

I haven't figured out how to quit yet.

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Hey, I have explained it in article, but here’s the quick solution:
When you’re in normal mode, just press,

“:w” (save file)
“:q” (quit file. but the file must be saved first)
“:wq” (save and quit)
“:q!” (quit without saving)

I hope it will help you. Thanks.

Collapse
 
siddharthshyniben profile image
Siddharth

You missed ZZ, which is far less keystrokes and which tolerates everything

Collapse
 
wuelnerdotexe profile image
Wuelner Martínez

If you would like to improve the appearance of vim, the Enfocado theme will be very useful. Excellent guide! 😃

GET IT ON |
github.com/wuelnerdotexe/vim-enfocado

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Thanks. I'll surely try this theme 😀

Collapse
 
pavelee profile image
Paweł Ciosek

Thanks, really handy!

Collapse
 
mursalfk profile image
Mursal Furqan Kumbhar

Awesome writeup bro! Keep 'em coming

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Thanks man!

Collapse
 
soorajantony profile image
Sooraj Antony

dd will delete an entire line instead of a word right?

Collapse
 
soundwavex81 profile image
SoundWaveX81

yeah.

also if you want to yank a entire line you can use yy

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Yes, thanks for the correction.

Collapse
 
yusrakhoso profile image
YusraFatima

This is so helpful for beginners!

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Thank you :D