Join Scott Simpson for an in-depth discussion in this video Edit text with Vim, part of Learning Linux Command Line.
- [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