opnsense-ports/editors/vim/files/defaults_freebsd.vim
Franco Fichtner 30e02fcc81 editors/vim: sync with upstream
Taken from: FreeBSD
2022-09-07 23:01:25 +02:00

10 lines
362 B
VimL

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