diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 20:43:42 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 20:43:42 +0200 | 
| commit | 5b77877888162f4e415fe9a7b8c5e9fb5dfb6ee1 (patch) | |
| tree | 965ae5128797f3d42d78d02692e62d24a4596e19 /ftplugin/lprolog.vim | |
| parent | 8148255ef1c416f414c3a78405eff08fe149d16e (diff) | |
| download | vim-polyglot-5b77877888162f4e415fe9a7b8c5e9fb5dfb6ee1.tar.gz vim-polyglot-5b77877888162f4e415fe9a7b8c5e9fb5dfb6ee1.zip | |
Add syntax files from upstream vim repository
Diffstat (limited to 'ftplugin/lprolog.vim')
| -rw-r--r-- | ftplugin/lprolog.vim | 41 | 
1 files changed, 41 insertions, 0 deletions
| diff --git a/ftplugin/lprolog.vim b/ftplugin/lprolog.vim new file mode 100644 index 00000000..669f8b05 --- /dev/null +++ b/ftplugin/lprolog.vim @@ -0,0 +1,41 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 +   +" Vim settings file +" Language:     LambdaProlog (Teyjus) +" Maintainer:   Markus Mottl  <markus.mottl@gmail.com> +" URL:          http://www.ocaml.info/vim/ftplugin/lprolog.vim +" Last Change:  2006 Feb 05 +"               2001 Sep 16 - fixed 'no_mail_maps'-bug (MM) +"               2001 Sep 02 - initial release  (MM) + +" Only do these settings when not done yet for this buffer +if exists("b:did_ftplugin") +  finish +endif + +" Don't do other file type settings for this buffer +let b:did_ftplugin = 1 + +" Error format +setlocal efm=%+A./%f:%l.%c:\ %m formatprg=fmt\ -w75\ -p\\% + +" Formatting of comments +setlocal formatprg=fmt\ -w75\ -p\\% + +" Add mappings, unless the user didn't want this. +if !exists("no_plugin_maps") && !exists("no_lprolog_maps") +  " Uncommenting +  if !hasmapto('<Plug>Comment') +    nmap <buffer> <LocalLeader>c <Plug>LUncomOn +    vmap <buffer> <LocalLeader>c <Plug>BUncomOn +    nmap <buffer> <LocalLeader>C <Plug>LUncomOff +    vmap <buffer> <LocalLeader>C <Plug>BUncomOff +  endif + +  nnoremap <buffer> <Plug>LUncomOn mz0i/* <ESC>$A */<ESC>`z +  nnoremap <buffer> <Plug>LUncomOff <ESC>:s/^\/\* \(.*\) \*\//\1/<CR> +  vnoremap <buffer> <Plug>BUncomOn <ESC>:'<,'><CR>`<O<ESC>0i/*<ESC>`>o<ESC>0i*/<ESC>`< +  vnoremap <buffer> <Plug>BUncomOff <ESC>:'<,'><CR>`<dd`>dd`< +endif + +endif | 
