dart.vim (688B)
1 if exists('b:did_ftplugin') 2 finish 3 endif 4 let b:did_ftplugin = 1 5 6 " Enable automatic indentation (2 spaces) if variable g:dart_style_guide is set 7 if exists('g:dart_style_guide') 8 setlocal expandtab 9 setlocal shiftwidth=2 10 setlocal softtabstop=2 11 12 setlocal formatoptions-=t 13 endif 14 15 " Set 'comments' to format dashed lists in comments. 16 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// 17 18 setlocal commentstring=//%s 19 let s:win_sep = (has('win32') || has('win64')) ? '/' : '' 20 let &l:errorformat = '%f:%l:%c:\ %m' 21 22 setlocal includeexpr=dart#resolveUri(v:fname) 23 setlocal isfname+=: 24 setlocal iskeyword+=$ 25 26 let b:undo_ftplugin = 'setl et< fo< sw< sts< com< cms< inex< isf<'