Add abbreviation in vim

08 Oct 2023

Abbreviations in the vim editor saves you from typing the same thing repeatedly.

.vimrc

iabbrev plbang /usr/bin/perl
iabbrev shbang /usr/bin/bash

.vimrc file is usually located in the home directory. To go to home directory use command cd ~. So, the vimrc file directory would be cd ~/.vimrc.