diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2018-12-26 10:56:23 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-12-26 10:56:23 +0100 |
commit | aad3df96e795b314d31171fea54b7455076d1d7b (patch) | |
tree | de25758c43c2dee3a151550c81a0a7d71cb4e86a /ftplugin | |
parent | 629a1e1c93145e779fc243614f18b606f1e53e0c (diff) | |
download | vim-polyglot-aad3df96e795b314d31171fea54b7455076d1d7b.tar.gz vim-polyglot-aad3df96e795b314d31171fea54b7455076d1d7b.zip |
Update
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/haml.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim index 86df1d87..6339f556 100644 --- a/ftplugin/haml.vim +++ b/ftplugin/haml.vim @@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 " Vim filetype plugin " Language: Haml " Maintainer: Tim Pope <vimNOSPAM@tpope.org> -" Last Change: 2010 May 21 +" Last Change: 2016 Aug 29 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -39,6 +39,8 @@ endif runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim let b:did_ftplugin = 1 +let &l:define .= empty(&l:define ? '' : '\|') . '^\s*\%(%\w*\)\=\%(\.[[:alnum:]_-]\+\)*#' + " 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 @@ -62,10 +64,11 @@ endif setlocal comments= commentstring=-#\ %s -let b:undo_ftplugin = "setl cms< com< " +let b:undo_ftplugin = "setl def< cms< com< " \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin let &cpo = s:save_cpo +unlet s:save_cpo " vim:set sw=2: |