1let g:is_posix = 1   " Our /bin/sh is POSIX, not bash
2
3" Load a port template when creating a Makefile under the ports tree
4augroup FreeBSD
5    autocmd!
6    autocmd BufNewFile /usr/ports/*/*/Makefile 0r /usr/ports/Templates/Makefile
7    if !empty($PORTSDIR)
8        autocmd BufNewFile $PORTSDIR/*/*/Makefile 0r $PORTSDIR/Templates/Makefile
9    endif
10augroup END
11