From the course: Learning Vim
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Zip files
- [Instructor] In many cases, you'll get some data in an archive such as a zip file. Instead of unzipping the file to a directory, viewing, and maybe making changes, you can do everything directly in Vim. Note, on Linux and Windows make sure you have the zip and unzip utilities installed. Open weather.zip. So Vim weather.zip. And we see a list of files. You can move up and down with j and k. To open a file, stand on it and hit enter. And you will view the content of the file. To exit, type column + q + enter. Now let's open a file and make some changes. Let's go to weather five with j, hit enter. And then I'm going to go one line down with j to the end of the line with dollar. And change the last character to nine with power + nine. Now we can save the changes with column + w and exit, column + q + a + enter. If you'll open zip again. Vim weather.zip and open our file. And we'll go to the end. We'll see that our changes has persisted. This is a very handy feature in Vim. And you'll…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Start Vim with a command1m 38s
-
(Locked)
Challenge: Use Vim command4s
-
(Locked)
Solution: Use Vim command26s
-
(Locked)
Diff mode3m 4s
-
(Locked)
Challenge: Diff mode8s
-
Solution: Diff mode18s
-
(Locked)
Zip files1m 19s
-
(Locked)
Challenge: Zip file8s
-
(Locked)
Solution: Zip file22s
-
(Locked)
Open files from name1m 22s
-
(Locked)
Challenge: Open file to line number11s
-
(Locked)
Solution: Open file to line number26s
-
(Locked)
External commands2m 9s
-
(Locked)
Challenge: External command13s
-
(Locked)
Solution: External command31s
-
(Locked)
-