annotate runtime/ftplugin/lprolog.vim @ 7552:b5eeaca50ae6

Added tag v7.4.1076 for changeset f624d7671e0caacf13a9baf477689daa3058710f
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 14:15:04 +0100
parents d6a69271cb9a
children 02939ae3aaca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim settings file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: LambdaProlog (Teyjus)
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 20
diff changeset
3 " Maintainer: Markus Mottl <markus.mottl@gmail.com>
d6a69271cb9a updated for version 7.0194
vimboss
parents: 20
diff changeset
4 " URL: http://www.ocaml.info/vim/ftplugin/lprolog.vim
d6a69271cb9a updated for version 7.0194
vimboss
parents: 20
diff changeset
5 " Last Change: 2006 Feb 05
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 7
diff changeset
6 " 2001 Sep 16 - fixed 'no_mail_maps'-bug (MM)
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 7
diff changeset
7 " 2001 Sep 02 - initial release (MM)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Only do these settings when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Don't do other file type settings for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Error format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 setlocal efm=%+A./%f:%l.%c:\ %m formatprg=fmt\ -w75\ -p\\%
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Formatting of comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 setlocal formatprg=fmt\ -w75\ -p\\%
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Add mappings, unless the user didn't want this.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Uncommenting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 if !hasmapto('<Plug>Comment')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 nmap <buffer> <LocalLeader>c <Plug>LUncomOn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 vmap <buffer> <LocalLeader>c <Plug>BUncomOn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 nmap <buffer> <LocalLeader>C <Plug>LUncomOff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 vmap <buffer> <LocalLeader>C <Plug>BUncomOff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 nnoremap <buffer> <Plug>LUncomOn mz0i/* <ESC>$A */<ESC>`z
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 nnoremap <buffer> <Plug>LUncomOff <ESC>:s/^\/\* \(.*\) \*\//\1/<CR>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 vnoremap <buffer> <Plug>BUncomOn <ESC>:'<,'><CR>`<O<ESC>0i/*<ESC>`>o<ESC>0i*/<ESC>`<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 vnoremap <buffer> <Plug>BUncomOff <ESC>:'<,'><CR>`<dd`>dd`<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endif