From the course: Learning Linux Command Line
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Edit text with Vim - Linux Tutorial
From the course: Learning Linux Command Line
Edit text with Vim
- [Instructor] 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. You'll also see it referred to as vi in some places for legacy reasons. The command name vi is a shortening of the word visual and vi was a popular text editor on BSD Linux. 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 called Learning vi to get a full sense of how to use it. As with a lot of the tools that 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 of it right now so…
Contents
-
-
-
-
-
-
The Unix philosophy2m 29s
-
(Locked)
Use pipes to connect commands together2m 41s
-
(Locked)
View text files with cat, head, tail, and less4m 44s
-
(Locked)
Search for text in files and streams with grep4m 30s
-
(Locked)
Manipulate text with awk, sed, and sort6m 50s
-
(Locked)
Edit text with Vim4m 35s
-
(Locked)
Edit text with nano2m 49s
-
(Locked)
Working with tar and zip archives8m 17s
-
(Locked)
Challenge: Create and share a file28s
-
(Locked)
Solution: Create and share a file1m 48s
-
(Locked)
Output redirection5m 11s
-
(Locked)
Exploring environment variables and PATH3m 54s
-
(Locked)
Challenge: Extract information from a text file1m 8s
-
(Locked)
Solution: Extract information from a text file3m 28s
-
-
-