From the course: Learning Linux Command Line
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Edit text with Vim - Linux Tutorial
From the course: Learning Linux Command Line
Edit text with Vim
- At the command line, we can edit text with stream editors and so on. But in many cases, especially when we're writing documents or coding, it's easier to just open up a text editor and do what we need to do. But if we're working at the command line, we don't always have access to our favorite graphical text editor. On most Linux distributions, there's a text editor called Vim. We'll also see it referred to as VI in some places for legacy reasons. The Command VI is a shortening of the word visual and VI was a popular text editor on Unix. The name VIM stands for VI Improved. VI, or Vim takes a little bit of getting used to and I encourage you to check out our course, Learning Vim, to get a full sense of how to use it. As with a lot of the tools we've explored so far, VIM can take a few minutes to learn, but years to master. So I'll take you through the very basics right now so you're ready to explore more when you're ready. To start Vim from the command line, I'll type VI. You might…
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)
The importance of modularity2m 37s
-
(Locked)
Use pipes to connect commands together2m 54s
-
(Locked)
View text files with cat, head, tail, and less4m 46s
-
(Locked)
Search for text in files and streams with grep5m 21s
-
(Locked)
Manipulate text with awk, sed, and sort7m 33s
-
(Locked)
Edit text with Vim5m 14s
-
(Locked)
Edit text with nano2m 38s
-
(Locked)
Working with tar and zip archives9m 26s
-
(Locked)
Challenge: Create and share a file24s
-
(Locked)
Solution: Create and share a file1m 41s
-
(Locked)
Output redirection5m 38s
-
(Locked)
Exploring environment variables and PATH4m 20s
-
(Locked)
Challenge: Extract information from a text file1m 2s
-
(Locked)
Solution: Extract information from a text file4m
-
(Locked)
-
-