mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 05:23:51 -05:00
23 lines
598 B
VimL
23 lines
598 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, 'indent/automake.vim', 1, 1), Filter)
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'automake') == -1
|
|
|
|
" Vim indent file
|
|
" Language: automake
|
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
" Latest Revision: 2006-04-19
|
|
|
|
if exists("b:did_indent")
|
|
finish
|
|
endif
|
|
|
|
" same as makefile indenting for now.
|
|
runtime! indent/make.vim
|
|
|
|
endif
|