30 lines
762 B
VimL
Raw Normal View History

2016-05-31 01:53:12 +02:00
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
if exists("b:did_ftplugin")
finish
endif
2018-10-08 19:00:59 +02:00
" Define some defaults in case the included ftplugins don't set them.
let s:undo_ftplugin = ""
" Override our defaults if these were set by an included ftplugin.
if exists("b:undo_ftplugin")
let s:undo_ftplugin = b:undo_ftplugin
unlet b:undo_ftplugin
endif
runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim
2016-05-31 01:53:12 +02:00
let b:did_ftplugin = 1
2018-10-08 19:00:59 +02:00
" Combine the new set of values with those previously included.
if exists("b:undo_ftplugin")
let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
endif
let b:undo_ftplugin = "setl isk<" . " | " . s:undo_ftplugin
2016-05-31 01:53:12 +02:00
setlocal iskeyword+=-
2016-06-17 20:47:16 +02:00
setlocal commentstring=/%s
2016-05-31 01:53:12 +02:00
endif