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

  Рет қаралды 105,206

SavvyNik

SavvyNik

Күн бұрын

Пікірлер: 123
@SavvyNik
@SavvyNik 2 жыл бұрын
Download a 25 page Linux Checklist here - learn.savvynik.com
@SavvyNik
@SavvyNik 4 жыл бұрын
0:00 - Intro and About Vim 1:34 - Open First File with Vim 2:15 - Install Vim instead of using Vi 2:53 - Navigating a File with Vim 3:30 - Inserting Text into a file with Vim 4:40 - Undo Past Changes in Vim 5:17 - Quit out of Vim 6:30 - Save Changes to file using Vim 8:15 - Create a New File using Vim 9:00 - Open Another File using Vim to make edits 9:51 - Search for Specific Line in Vim 10:24 - Search for Specific Text in File using Vim 11:50 - Delete Lines in a File using Vim 13:21 - Recap of all operations/commands used in Vim w/ Explanation 16:00 - Using vimtutor command for more help
@BeansEnjoyer911
@BeansEnjoyer911 3 жыл бұрын
Your tutorials are amazing. Subbed. Helped so much as I've been learning Linux
@SavvyNik
@SavvyNik 3 жыл бұрын
Awesome to hear! Glad you found the tutorials helpful and thanks for subbing.
@ComsicQuestGG
@ComsicQuestGG 3 жыл бұрын
Thanks! Setting up a OpenVPN server; and needed to edit the server config file but couldn't for the life of me remember how to insert/edit a file. Spent way too much time in a Windows enviro forgot all my Linux.
@SavvyNik
@SavvyNik 3 жыл бұрын
Awesome to hear!! No problem, glad you found the video helpful.
@khareckless6769
@khareckless6769 4 жыл бұрын
thank you! I was so overwhelmed at 1st and you made it very simple and fun
@SavvyNik
@SavvyNik 4 жыл бұрын
Awesome, Np!! Glad you enjoyed the video =)
@Slavolko
@Slavolko 2 жыл бұрын
Thanks. Never used vim before, so this was a nice intro.
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad I could help
@lubnafathima7517
@lubnafathima7517 2 жыл бұрын
Thank you so much for this tutorial MUCH NEEDED ONE!!!!
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome!!
@rawindrareddy5578
@rawindrareddy5578 2 жыл бұрын
Wow amazing You made it so easy man Thank You So Much ❤️
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome 😊
@ummatilawan5797
@ummatilawan5797 Жыл бұрын
Very informative. thank you so much for this video.
@k_usuan
@k_usuan Жыл бұрын
Awesome and so smooth and precise
@SavvyNik
@SavvyNik Жыл бұрын
Glad you liked it
@kingstonxavier
@kingstonxavier 3 жыл бұрын
Cool post and very helpful. Is there a way to edit the read-only files and save as a new file?
@SavvyNik
@SavvyNik 3 жыл бұрын
Glad you liked it. Try using :w /path/where/you/access/to/write
@avishekpdsyouthoob9083
@avishekpdsyouthoob9083 4 жыл бұрын
OMG A DREAM! A VIM TUTORIAL VIDEO
@SavvyNik
@SavvyNik 4 жыл бұрын
@AvishekPD's YouThoob - Glad you enjoyed it ^^
@omnimathic
@omnimathic Жыл бұрын
Amazing video!
@rupalijindal5680
@rupalijindal5680 2 жыл бұрын
Thanks for the detailed video👍
@SavvyNik
@SavvyNik 2 жыл бұрын
No problem, glad you liked it!
@vijayalaxmisr4806
@vijayalaxmisr4806 3 жыл бұрын
Thanks a lot, you explained it very nicely
@SavvyNik
@SavvyNik 3 жыл бұрын
Glad it was helpful! Make sure to smash that like button for me if you haven't already =)
@DonTequilon
@DonTequilon 3 жыл бұрын
Thank you for the easy explanation
@SavvyNik
@SavvyNik 3 жыл бұрын
You are welcome!
@nikolasg4210
@nikolasg4210 4 ай бұрын
Thank you very good tutorial
@PurposefulThinkers
@PurposefulThinkers 2 жыл бұрын
Thank you so much for making this video!!!
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome! Glad it was helpful.
@danielcastillovillamarin3107
@danielcastillovillamarin3107 2 жыл бұрын
Amazing video!!!! Thank you so much!
@SavvyNik
@SavvyNik 2 жыл бұрын
You are so welcome!
@Wongmc644
@Wongmc644 Жыл бұрын
Great intro to video. Thnks
@SavvyNik
@SavvyNik Жыл бұрын
No problem
@oraziofindus4675
@oraziofindus4675 4 жыл бұрын
Thank you for this tutorial, awesome work!
@SavvyNik
@SavvyNik 4 жыл бұрын
Glad you enjoyed it! You're welcome =)
@Nepal071
@Nepal071 3 жыл бұрын
Thank you for making this video!
@SavvyNik
@SavvyNik 3 жыл бұрын
Glad it was helpful! You're welcome!
@erebusparcae
@erebusparcae 2 жыл бұрын
thank you i needed this...
@SavvyNik
@SavvyNik 2 жыл бұрын
Awesome, no problem.
@신상원-t4j
@신상원-t4j 3 жыл бұрын
thanks a lot. i'm exactly in the same situation u mentioned. it was a lot of help.
@SavvyNik
@SavvyNik 3 жыл бұрын
Awesome to hear! Glad you found this helpful. Make sure to smash that like button for me if you haven't already =)
@wldtrbls
@wldtrbls Жыл бұрын
Perfect, thank you :)
@SavvyNik
@SavvyNik Жыл бұрын
No problem 😊
@roauf-
@roauf- 2 жыл бұрын
How to like a youtube videos twice? cuz I wanna do it to ur video, thank u so much bro for the great simple explanation
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad you enjoyed it! You're welcome :)
@roauf-
@roauf- 2 жыл бұрын
@@SavvyNik thank you, I'm looking forward for more of your videos
@norah5073
@norah5073 2 жыл бұрын
The best explaination
@SavvyNik
@SavvyNik 2 жыл бұрын
Thanks
@sixtuscardinal2581
@sixtuscardinal2581 3 жыл бұрын
Helpful tutorial....Thank You!
@SavvyNik
@SavvyNik 3 жыл бұрын
Glad it was helpful! No problem.
@davidreyes5946
@davidreyes5946 3 жыл бұрын
Nice tutorial! Really helpful. New sub :)
@SavvyNik
@SavvyNik 3 жыл бұрын
Awesome to hear!! Glad you enjoyed and thanks for the sub =)
@joellopescunhadesouza8617
@joellopescunhadesouza8617 2 жыл бұрын
Thank you very much! It helped me a lot
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad it helped! You're welcome.
@meergoedemuziek
@meergoedemuziek Жыл бұрын
Thank you so much for this content ⭐⭐⭐
@SavvyNik
@SavvyNik Жыл бұрын
No problem
@codemagic2487
@codemagic2487 3 жыл бұрын
thanks a lot! very helpful for me !
@SavvyNik
@SavvyNik 3 жыл бұрын
You are welcome, glad you liked it!
@vipulkanojia3080
@vipulkanojia3080 2 жыл бұрын
thanks for this tutorial
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome 😊
@TheEspikes
@TheEspikes Жыл бұрын
You are a cool tutor
@ozonewagle
@ozonewagle 2 жыл бұрын
Thank you so much.
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome!
@cameronribeiro9660
@cameronribeiro9660 3 жыл бұрын
Try adding this: Think people want to see: Create a python port scanner to run in terminal.
@ulrichsamosii6058
@ulrichsamosii6058 6 ай бұрын
Great job!
@greghenderson1538
@greghenderson1538 2 жыл бұрын
Very helpful. Thank you!
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad it was helpful! You're welcome.
@user-ou5jn7fj8o
@user-ou5jn7fj8o Жыл бұрын
Hi, is there any way we can go to a specific column in the line? Say i want to go to 15th char in a line, is there a command i could use?
@SavvyNik
@SavvyNik Жыл бұрын
Try n| where n is the number in the line you want to get to or if you want to go to a specific line in the doc you can do :n where n is is the number of the line you want to get to
@azkaamin3425
@azkaamin3425 8 ай бұрын
really helpful tutorial
@SavvyNik
@SavvyNik 8 ай бұрын
Thanks
@narasimhaswamy7986
@narasimhaswamy7986 2 жыл бұрын
Very useful video
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad you liked it
@danielcastillovillamarin3107
@danielcastillovillamarin3107 2 жыл бұрын
Hey man, thank u for the video, it was so useful to me! May you please share with me that background image? Greetings!
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad you think so :) pixabay.com/videos/hello-world-pc-retro-monitor-28320/
@raedsalih5146
@raedsalih5146 2 жыл бұрын
Thanks
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome!
@sauravdas5325
@sauravdas5325 4 жыл бұрын
Do you use vim daily or use vscode?
@SavvyNik
@SavvyNik 4 жыл бұрын
@Saurav Das - For most small edits and programming that I know will be contained all in one/two files I stick to vim. Otherwise, I'll use vscode if it's a large project or brand new so I can get the structure going properly.
@abhishek-xv5ow
@abhishek-xv5ow 2 жыл бұрын
lots of informations :)
@SavvyNik
@SavvyNik 2 жыл бұрын
Glad you think so!
@mxibarr27
@mxibarr27 Жыл бұрын
While in normal mode if I type a command more then once it starts logging all of my keystrokes at the bottom of the page and the commands won't process. For example if I look for a specific letter with /w and I type n to go next after my first two n it will start logging all of the n I type and won't go next. Might be a noob questions, but appreciate any help
@kingstonxavier
@kingstonxavier 3 жыл бұрын
I encountered this issue E212: Can't open file for writing while saving the file. I had to open open the file with sudo to get the file saved.
@gouravkumarshaw5467
@gouravkumarshaw5467 2 жыл бұрын
gg for going top and shift +g to go to the bottom
@CheezyDibbles
@CheezyDibbles 3 жыл бұрын
out of my windows habit i pressed "ctrl+s" it freezed VIM. i had to close terminal to open up another one. what should i do in this case?
@gouravkumarshaw5467
@gouravkumarshaw5467 2 жыл бұрын
esc +:x to save and exit
@NJ-rx2dn
@NJ-rx2dn 4 жыл бұрын
Does vim recognize different extensions? I mean like if I name a file as something.cpp, will it recognize it as a C++ file? Also I saw a list.sl file. What is a .sl file? I searched but came across a .sln file.
@SavvyNik
@SavvyNik 4 жыл бұрын
It does not have syntax highlighting for most types of extensions, but you can add plugins in for various extensions (which will give you that support). A *.sl file is something I just made up. The extension doesn't need to be one that's already been used.. (I figured sl would stand for simpleList which was a database for a program that I wrote in one of my past C++ tutorial videos).
@NJ-rx2dn
@NJ-rx2dn 4 жыл бұрын
@@SavvyNik So we can make up extensions as well? That's something I didn't know... Also, if I write a code and save it as a .cpp file can I execute it with the text editor or should I use the terminal for that? Also would the permissions when I do the ls -l in the terminal show executable also? Hope you can understand me 😅
@SavvyNik
@SavvyNik 4 жыл бұрын
@@NJ-rx2dn Sure you can make your own extensions up. Any text editor that saves a file can usually do this just save as filename.whateverext although it won't be recognized by the system. If you want to edit a cpp file through a text editor that's perfectly fine. I use sublime text editor sometimes for this. I'm not sure what you mean by executable permissions.. a cpp file doesn't need executable permissions because it cannot be executed until it has been compiled.
@NJ-rx2dn
@NJ-rx2dn 4 жыл бұрын
@@SavvyNik Oh I meant when we do a ls -l in the terminal we get a long list and in the first column it shows the different rwx permissions available for the user and others right? That's what I meant by permissions.
@SavvyNik
@SavvyNik 4 жыл бұрын
@@NJ-rx2dn yes that does show you the list of permissions. I'm not sure if it'd show executable or not. I wouldn't think so unless you chmod.
@analysis092
@analysis092 3 жыл бұрын
Sir my vim is opening in terminal, I want to open separately. How can I do that ??
@kartikthakur4852
@kartikthakur4852 4 жыл бұрын
how you did that hello world wallpaper thing?
@SavvyNik
@SavvyNik 4 жыл бұрын
I made a video on this application that allows for live wallpapers here's a link: kzbin.info/www/bejne/d2qclYNul5p9e6M just make sure to destroy the like button for me =)
@kartikthakur4852
@kartikthakur4852 4 жыл бұрын
@@SavvyNik thanks for such a fast reply 🙏
@SavvyNik
@SavvyNik 4 жыл бұрын
@@kartikthakur4852 No problem
@tinbilltv4141
@tinbilltv4141 3 жыл бұрын
I have a problem with the colon, it won't work on my mac.
@lechsiz1642
@lechsiz1642 2 жыл бұрын
hardly in the same league, but micro looks a bit easy. heck, even word grinder. why doesn't vim change many of its keybindings to standard ones now? There must be 15+ standard keybindings that work in all OSs, web browsers, and 30+ in all Linux.
@PeacefulMusic-l7o
@PeacefulMusic-l7o Жыл бұрын
Redo command?
@gouravkumarshaw5467
@gouravkumarshaw5467 2 жыл бұрын
:q to exit without save
@mr.b7277
@mr.b7277 2 жыл бұрын
Completely disliked vi/vim annd preferred nano until I watched this video. Thank you!
@SavvyNik
@SavvyNik 2 жыл бұрын
You're welcome! Glad to hear it :)
@Hyodoh7
@Hyodoh7 3 жыл бұрын
When searching for something, I found you can use "n" to go forward and "b" to go back. Thought that could help someone else too
@SavvyNik
@SavvyNik 3 жыл бұрын
Yes, good mentions! Thanks Nate.
@siik-ghostface
@siik-ghostface 4 жыл бұрын
I can't open wordlist1.txt file with text editor or with vim but I can however open the file with terminal to see the content inside the file. I believe there's something wrong and missing that is causing that problem preventing the OS and file from successfully and smoothly opening with vim and text editor to view content. Can you or anyone here on KZbin do quick investigative look? You can go to www.Kali.org then downloads, find VBox appliance(2020 release version) version, get 64bit version. Password and username by default is kali/kali instead of root/toor. Well let me know if you looked inside and found the same issue as I came across with opening generates word list file. ...................................................................................................................................................................................................... Ok I find out that crunch tool is causing this problem to make the generated files to not work with vim and text editor, so they won't work with another because of crunch tool it seems. If I do a right click in the /home/Kali/Desktop/Word list directory in file manager and create empty file document and say name it wordlist6.txt ..... what will happen is when I double click on wordlist6.txt file, it successfully opens up text editor within 4 seconds like it should but if I create that same kind of file with crunch then it will not successfully open with vim or text editor. So the crunch tool is the culprit problem here. I think it's making them unsupported or corrupted. But yeah can still look into this and find a fix solution.
@SavvyNik
@SavvyNik 4 жыл бұрын
@Dimitri Esprit The Hermit - Thanks for posting your in depth issue and what you ended up finding! I'm sure this will help people who run into a similar issue. Not sure how it has corrupted the file. Usually vim is capable of even opening up executables/binary files which are unreadable but still displays characters. Interesting indeed.
@siik-ghostface
@siik-ghostface 4 жыл бұрын
@@SavvyNik it probably just generated as unsupported file not corrupt. But I just thought of smarter idea about crunch I discovered a person can do with crunch. I read that not only can you send and generate wordlist to the terminal screen or generate a wordlist file to folder into your desktop.....but 3rd optionally to another PROGRAM (Web browser counts as program yes?!) So a person doesn't have to worry about wasting storage space on his Linux OS device(sda1) so instead it goes to web page, into a file there... basically to and within web browser. You get understand what I am saying. Now I just have to look how to send a wordlist to the web browser from crunch tool terminal.
@SavvyNik
@SavvyNik 4 жыл бұрын
@@siik-ghostface - Interesting idea. Basically a cloud backup solution for Crunch =D
@siik-ghostface
@siik-ghostface 4 жыл бұрын
@@SavvyNik yes then a person should be able to run that file that's from the cloud with connection and using password cracking tool in terminal.
@SavvyNik
@SavvyNik 4 жыл бұрын
@@siik-ghostface - Pretty cool idea. Good luck!
@HyperionBadger
@HyperionBadger 2 жыл бұрын
Have a big fat subscribe from me.
@SavvyNik
@SavvyNik 2 жыл бұрын
Awesome to hear! Thanks for the sub :)
@gouravkumarshaw5467
@gouravkumarshaw5467 2 жыл бұрын
esc u for undo
@johnd942
@johnd942 Жыл бұрын
Why use a BLACK SCREEN if you are typing light-coloured fonts? So Dumb!
@nramdec201987
@nramdec201987 3 жыл бұрын
too much-unwanted talk
@SavvyNik
@SavvyNik 3 жыл бұрын
I guess I like talking ;)
@analysis092
@analysis092 3 жыл бұрын
Sir my vim is opening in terminal, I want to open separately. How can I do that ??
@analysis092
@analysis092 3 жыл бұрын
Sir my vim is opening in terminal, I want to open separately. How can I do that ??
@piyushnaithani7689
@piyushnaithani7689 2 жыл бұрын
It opens in terminal. To open it separately may be u need to install some desktop app.
Vim Basics in 8 Minutes
8:57
tutoriaLinux
Рет қаралды 536 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 2,9 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 122 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 136 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 14 МЛН
Vim in 100 Seconds
11:53
Fireship
Рет қаралды 1,1 МЛН
Vim Tips You Probably Never Heard of
12:11
Luke Smith
Рет қаралды 122 М.
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
🆕vi Editor In Linux 👉 Vi editor In Linux tutorial
17:52
DevOps TechLab
Рет қаралды 15 М.
Структура файлов и каталогов в Linux
20:28
Aleksey Samoilov
Рет қаралды 417 М.
Vim As Your Editor - Introduction
12:24
ThePrimeagen
Рет қаралды 973 М.
My Favorite Vim Tricks
14:39
MAKC
Рет қаралды 184 М.
NVChad - Turn Neovim Into An Awesome IDE
14:48
Mental Outlaw
Рет қаралды 284 М.
Such a gadget should be at hand.
0:17
Super Craft
Рет қаралды 1 МЛН
Проверил, как вам?
0:53
Коннор
Рет қаралды 525 М.
А зачем ему рабочий ноутбук?..
0:12
Новостной Гусь
Рет қаралды 623 М.
Low Battery 🪫🥹🥹🥹
0:10
dednahype
Рет қаралды 5 МЛН
Handy remote!
0:25
LeraKek
Рет қаралды 3,8 МЛН