setlocal shiftwidth=2 set formatoptions+=or " == Abbreviations == iabbr #d # *** DEFINITIONS *** iabbr #f # *** FUNCTIONS *** iabbr #m # *** MAINLINE *** iabbr _h1 # *** ***=Eatchar('[\r[:space:]]') iabbr _h2 # == ===Eatchar('[\r[:space:]]') iabbr _h3 # -- --=Eatchar('[\r[:space:]]') iabbr def (){ }[[=Eatchar('[\r[:space:]]') iabbr _term if [ -t 1 ] ; then iabbr _if if [ ] ; then fi=Eatchar('[\r[:space:]]') iabbr _while while [ ] ; do done=Eatchar('[\r[:space:]]') " == Mappings == " Psuedo-global (same intent across various filetypes) -- won't work (filetype not set yet) "# nmap ih :put! =\"#! /bin/sh\n# (Bourne shell script) -- \n#\n\"kll