Vim is my preferred text editor for configuring system and writing code at a shell prompt. However, many new Linux users find it difficult to cope with vim or vi editor. This tutorial provides a good introduction to vim text editor on Linux operating system. Whether you are a system administrator or developer give it a try to VIM on Linux.
From the book:
The VI editor is a screen-based editor used by many Unix users. The VI editor has powerful features to aid programmers, but many beginning users avoid using VI because the different features overwhelm them. This tutorial is written to help beginning users get accustomed to using the VI editor, but also contains sections relevant to regular users of VI as well. Examples are provided, and the best way to learn is to try these examples, and think of your own examples as well… There’s no better way than to experience things yourself.
Mastering the VIM editor for Linux
This PDF version covers the following topics:
- Introduction
- Conventions
- Before You Begin
- Starting the VI Editor
- Getting Out of VI
- The Two Modes of VI
- How to Type Commands in Command Mode
- Some Simple VI Commands
- Text Buffers in VI
- Cutting and Yanking
- Pasting
- Indenting Your Code and Checking
- Word and Character Searching
- Settings for VI (and EX)
- Abbreviations and Mapping Keys to Other Keys
- The EXINIT Environment Variable and the .exrc file
- Recovering Your Work When Something Goes Wrong with Your Terminal
- Warning About Using VI on the Workstations
- Summary of VI commands
- Cutting and Pasting/Deleting text
- Inserting New Text
- Moving the Cursor Within the File
- Moving the Cursor Around the Screen
- Replacing Text
- Searching for Text or Characters
- Manipulating Character/Line Formatting
- Saving and Quitting
- Miscellany
- EX Commands
Download Mastering the vim text editor book
- PDF version local mirror – Download pdf Version [cyberciti.biz]
- HTML version here [hawaii.edu]
- PDF version here [hawaii.edu]
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 2 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Hey links are broken. Can you fix it?
Fixed it. It should work now. Thanks for the heads up!