Daily Shaarli

All links of one day in a single page.
Introduction to Vim abbreviations | jovica.org | Notes on Security, Technology and Life
thumbnail

The command for Insert mode abbreviations looks like this:

:iabbrev [<expr>] [<buffer>] {abbreviation} {expansion}
  • - stands for Vimscript expression to create the expansion.
  • - means that it only applies to the current buffer.
  • {abbreviation} - is the thing you type, or your “trigger”
  • {expansion} - is your final outcome
  • Anything that’s inside a [] is optional.