mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-15 23:13:50 -05:00
20 lines
489 B
VimL
20 lines
489 B
VimL
let files = filter(globpath(&rtp, 'indent/razor.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'razor') == -1
|
|
|
|
" Vim indent file
|
|
" Language: Razor
|
|
" Maintainer: Adam Clark <adamclerk@gmail.com>
|
|
" Last Change: 2013 Jan 24
|
|
|
|
if exists("b:did_indent")
|
|
finish
|
|
endif
|
|
runtime! indent/html.vim
|
|
runtime! indent/javscript.vim
|
|
|
|
endif
|