" Vim filetype plugin " Language: Refal " Maintainer: Anton Orlov " Last Change: Thu Feb 3 11:47:41 MSK 2005 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 setlocal formatoptions-=t setlocal comments=sr:/*,mb:*,ex:*/,:// setlocal iskeyword=a-z,A-Z,48-57,_,.,-,!,? setlocal matchpairs+=<:> setlocal include=^\\s*\\\$use setlocal includeexpr=substitute(v:fname,'$','.rf','') setlocal define=^ " Each function is one fold setlocal foldexpr=synIDattr(synID(v:lnum,1,1),'name')=='Comment'?'=':getline(nextnonblank(v:lnum+1))=~'^\\s'?1:synIDattr(synID(v:lnum+1,1,1),'name')=='Comment'?'=':'<1' setlocal foldminlines=2 " Add mappings, unless the user didn't want this. if !exists("no_plugin_maps") && !exists("no_refal_maps") " Find functions definitions (should start from the begining of a line) nmap  :ijump /^/ imap   endif