annotate runtime/ftplugin/lisp.vim @ 3018:45ead8a0bede v7.3.281

updated for version 7.3.281 Problem: After using "expand('%:8')" the buffer name is changed. Solution: Make a copy of the file name before shortening it.
author Bram Moolenaar <bram@vim.org>
date Wed, 17 Aug 2011 15:23:23 +0200
parents fca8a9b65afa
children ba708ee8d69d
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 filetype plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Lisp
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
3 " Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
4 " URL: http://iamphet.nm.ru/vim
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
5 " Original author: Dorai Sitaram <ds26@gte.com>
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
6 " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
7 " Last Change: Nov 8, 2004
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 this 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 load another plugin 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 setl comments=:;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 setl define=^\\s*(def\\k*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 setl formatoptions-=t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 setl lisp
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
22
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
23 " make comments behaviour like in c.vim
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
24 " e.g. insertion of ;;; and ;; on normal "O" or "o" when staying in comment
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
25 setl comments^=:;;;,:;;,sr:#\|,mb:\|,ex:\|#
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
26 setl formatoptions+=croql