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

Zip files - vi Tutorial

From the course: Learning Vim

Start my 1-month free trial

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…

Contents