mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 21:13:50 -05:00
27 lines
680 B
VimL
27 lines
680 B
VimL
let s:base = expand("<sfile>:h:h")
|
|
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
|
let files = filter(globpath(&rtp, 'ftplugin/bst.vim', 1, 1), Filter)
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bst') == -1
|
|
|
|
" Vim filetype plugin file
|
|
" Language: bst
|
|
" Author: Tim Pope <vimNOSPAM@tpope.info>
|
|
" $Id: bst.vim,v 1.1 2007/05/05 17:37:57 vimboss Exp $
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal commentstring=%\ %s
|
|
setlocal comments=:%
|
|
setlocal fo-=t fo+=croql
|
|
|
|
let b:undo_ftplugin = "setlocal com< cms< fo<"
|
|
|
|
endif
|