Skip to content

Releases: vitalk/vim-shebang

Support optional `pre_hook` command

02 Apr 08:17
Compare
Choose a tag to compare
  • Add support of custom (and optional) pre_hook command while defining shebang patterns. This hook allow to execute user-defined command when pattern match found (#1). Thanks to @oryband

    AddShebangPattern  sh  ^#!/bin/sh  let\ g:is_sh=1
  • Set/unset the b:is_sh and b:is_bash variables according with shebang pattern, e.g. switching between multiple bash and sh buffers change syntax highlighting appropriately.