sponsor Vim development Vim logo Vim Book Ad

Syntax context abbreviations : Abbreviations that only happen outside comments

 script karma  Rating 10/4, Downloaded by 1867  Comments, bugs, improvements  Vim wiki

created by
Michael Geddes
 
script type
utility
 
description
Abbreviations in language files can sometimes be annoying if they are not intended for inside comments (capitalisation is a good example). Support for <buffer> is included.

This script allows you to create abbreviations that do not happen inside comments.
Synabbrev[!] [<buffer>] {lhs} {RHS}

eg
Synabbrev to To




 
install details
Add to ~/vimfiles/plugin  or  ~/.vim/plugin
Add to ftplugin files as appropriate
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
synabbrev.vim 0.1unix 2009-03-20 6.0 Michael Geddes fileformat=unix
synabbrev.vim 0.1 2004-01-01 6.0 Michael Geddes Initial upload
ip used for rating: 54.82.20.97

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github