Vim Basics in 8 Minutes

preview_player
Показать описание
Learn all the basics you need to start editing text in vi or vim.

0:00 - Introduction
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

Рекомендации по теме
Комментарии
Автор

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

tutoriaLinux
Автор

That joke about putting a noob in vim editor is seriously underrated. I remember my first time trying to exit it xD

kaustavsarkar
Автор

Surprised you didn't mention
yy to copy a line
p to paste
I work with vim every single day, and I use these 1000 times a day.

kbgagt
Автор

As a full-time vim user of many years - I think this is a great intro. Enough to be useful, and possibly intrigue people to learn more. :-)

NigelAtkinson
Автор

I've learned a lot just by reading the comments! That's power of the community! :D

Yasharvl
Автор

What you call "command mode" is "normal mode". Command mode is entered by pressing colon in normal mode

StruC
Автор

Shortest 8 mins of my life, you just hooked me man!! You're great teacher.

VinayKumar-vuen
Автор

This is actually the only video i've watched about vim that actually make me interested in learning vim. Thank you.

BitterMonday
Автор

My friend told me he'll pay me if I manage to learn Vim.
I've never earned so much for watching a 9-minute video. Thanks :D

gohny
Автор

its my first time diving into arch. i feel like i am manipulating individual atoms. thanks

gabrielp
Автор

Great! Vim was recommended to me yesterday by the lead developer where I work. (I am not currently employed as a developer, I just befriended this gentleman.) I currently alternate between two of the most popular text editors in my studies, and I will be beginning my studies in a coding boot camp 2 days from now. I am convinced that this will be a valuable tool in my developer's tool box, and your simple <= 9 minute video has helped immensely!

allanpimble
Автор

I first used vi in the early 90's it is one of those tools you either use all the time or you forget all the shortcuts, so thanks for the refresher.
One thing you missed is: set nonumber.
Always handy to know how to unset something you showed how to set.
All the best!

MarkBTomlinson
Автор

That was the perfect amount of knowledge for a novice like me to get started. You sir, know what you're doing. Thank you.

Liam-bprm
Автор

Small correction: The g-flag on your search-and-replace command stands for "global"
"greedy" means something different in regex terms

dasten
Автор

you goota be one of the most professional youtube teachers I-ve ever seen. even the videos timeline has the codes to assist. this is gold man, definately spreading the word!

alfarocaleb
Автор

Insanely useful. I'm in over my head, but now I have an ear above water

rkn
Автор

you've done a great tutorial! Clear, concise explanation but you've also struck the balance between being useful and getting overwhelming. Keep up the good work!

ivanko
Автор

finally exited vim after several years, thank you!

_peacefulPlace
Автор

cut from current line to specified:

d <line-number> G


replace word from current position
cw

replace entire word:
ciw

Replace line from current position:
C

my most appreciated commands

CoinedBeatz
Автор

I've seen this video a couple of months ago and ended up falling back to nano, but I'm once again trying to use this as my main terminal editor, and I gotta say I really enjoy it, thank you for making such a consive video, that's what makes the linux community go forward.

kendarr