Vi was the first screen-oriented text editor created for Unix, it was designed to be simple yet powerful for text manipulation.
Vim is not just any text editor, it is an open-source configurable text editor that we can program according to our needs. It is an extremely fast and powerful text editor.
When programming, you spend most of your time reading/editing, not writing. For this reason, Vim is a modal editor: it has different modes for inserting text vs manipulating text. Vim is programmable (with Vimscript and also other languages like Python), and Vim’s interface itself is a programming language: keystrokes (with mnemonic names) are commands, and these commands are composable. Vim avoids the use of the mouse because it’s too slow; Vim even avoids using the arrow keys because it requires too much movement.
The end result is an editor that can match the speed at which you think.
- Vim is Always Available: Vim is available on most, if not all Linux distributions out there, you can install it from your distro’s official software repositories as follows:
apt-get install vim [On Debian/Ubuntu] yum install vim [On RHEL/CentOS] dnf install vim [Fedora 22+]
WSL and WSL2 can be used in Windows to be able to use VIM. Also, Vim GUI can be downloaded for Windows to use VIM. Click Here to download Vim GUI.
- Vim Is Very Customizable and Extensible
- Vim Uses Less Amount of System Resources
- Vim Supports All Programming Languages and File Formats
- Vim Has A Vibrant Community
- Difficult learning curve
- High effort to customize
Vim’s design is based on the idea that a lot of programmer time is spent reading, navigating, and making small edits, as opposed to writing long streams of text. For this reason, Vim has multiple operating modes.
- Normal: for moving around a file and making edits
- Insert: for inserting text
- Replace: for replacing text
- Visual (plain, line, or block): for selecting blocks of text
- Command-line: for running a command
Stick with using vim for all your text editing needs (even if it slows you down initially). If you can cross the initial learning period then it could be a boon for you.