diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-16 15:50:39 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-16 15:50:39 +0200 |
commit | 17c2b630e1f0f0f02a24fcc664f0df91122e8e00 (patch) | |
tree | 09a54c87c97be6d400291b79b89368fab37ce234 /ftplugin/prolog.vim | |
parent | 271679272c7bb1a281c7404408a2414068abf91c (diff) | |
download | vim-polyglot-17c2b630e1f0f0f02a24fcc664f0df91122e8e00.tar.gz vim-polyglot-17c2b630e1f0f0f02a24fcc664f0df91122e8e00.zip |
Write heuristics for perl, closes #550v4.10.2
Diffstat (limited to 'ftplugin/prolog.vim')
-rw-r--r-- | ftplugin/prolog.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ftplugin/prolog.vim b/ftplugin/prolog.vim new file mode 100644 index 00000000..bd813dce --- /dev/null +++ b/ftplugin/prolog.vim @@ -0,0 +1,24 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'prolog') == -1 + +" Vim filetype plugin file +" Language: Prolog +" Previous Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2008-07-09 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +let b:undo_ftplugin = "setl com< cms< fo<" + +setlocal comments=s1:/*,mb:*,ex:*/,:% commentstring=%\ %s +setlocal formatoptions-=t formatoptions+=croql + +let &cpo = s:cpo_save +unlet s:cpo_save + +endif |