Join Scott Simpson for an in-depth discussion in this video Edit text with Vim, part of Learn the Linux Command Line: The Basics.
- [Voiceover] Sometimes you just need a text editor…and if you're working at the command line…you don't always have access to your favorite…graphical text editor.…So, what do you do?…Well, in most Linux distributions…there's a text editor called Vim.…Vim takes a little bit of getting used to…and in fact I encourage you to check out…Up and Running with vi to get a full sense…of how to use it.…But I'll take you through the very basics right now.…To start Vim from the command line…I'll type vi.…The first screen that shows up gives you…a sense of what it's like to work in Vim.…
Instead of having a toolbar Vim has two modes.…Insertion mode where we type and make manual…changes to text and Command mode where we issue…commands like Save, Search and many other things.…I'll press i to go to Insertion mode,…and here I can start typing things.…And if I press Escape I'll go back into Command mode.…Keys you press in Command mode do different things…than in Insertion mode.…So be careful that you're in the Insertion mode…if you want to make changes to the text.…
This course will establish the foundation for more advanced Linux topics. Find other Linux training courses here.
- What is the Linux command line?
- Writing Linux commands at the prompt
- Finding help for Linux commands
- Editing files and folders
- Configuring user roles and file permissions
- Using pipes to connect commands
- Peeking at files
- Searching and editing text
- Finding disk and system information
- Installing and updating software
Skill Level Beginner
Up and Running with CentOS Linuxwith Scott Simpson1h 32m Beginner
Up and Running with Bash Scriptingwith Scott Simpson1h 25m Beginner
1. Command-Line Basics
2. Files, Folders, and Permissions
3. Common Command-Line Tasks and Tools
4. A Peek at Some More Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.