citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

jade.vim (1308B)


      1 " Vim filetype plugin
      2 " Language: Jade
      3 " Maintainer: Joshua Borton
      4 " Credits: Tim Pope
      5 
      6 " Only do this when not done yet for this buffer
      7 if exists("b:did_ftplugin")
      8   finish
      9 endif
     10 
     11 let s:save_cpo = &cpo
     12 set cpo-=C
     13 
     14 " Define some defaults in case the included ftplugins don't set them.
     15 let s:undo_ftplugin = ""
     16 let s:browsefilter = "All Files (*.*)\t*.*\n"
     17 let s:match_words = ""
     18 
     19 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
     20 unlet! b:did_ftplugin
     21 
     22 " Override our defaults if these were set by an included ftplugin.
     23 if exists("b:undo_ftplugin")
     24   let s:undo_ftplugin = b:undo_ftplugin
     25   unlet b:undo_ftplugin
     26 endif
     27 if exists("b:browsefilter")
     28   let s:browsefilter = b:browsefilter
     29   unlet b:browsefilter
     30 endif
     31 if exists("b:match_words")
     32   let s:match_words = b:match_words
     33   unlet b:match_words
     34 endif
     35 
     36 " Change the browse dialog on Win32 to show mainly Haml-related files
     37 if has("gui_win32")
     38   let b:browsefilter="Jade Files (*.jade)\t*.jade\n" . s:browsefilter
     39 endif
     40 
     41 " Load the combined list of match_words for matchit.vim
     42 if exists("loaded_matchit")
     43   let b:match_words = s:match_words
     44 endif
     45 
     46 setlocal comments= commentstring=-#\ %s
     47 
     48 let b:undo_ftplugin = "setl cms< com< "
     49       \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
     50 
     51 let &cpo = s:save_cpo
     52 
     53 " vim:set sw=2: