lisp.vim 769 B

123456789101112131415161718192021222324252627
  1. " Vim filetype plugin
  2. " Language: Lisp
  3. " Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
  4. " URL: http://sites.google.com/site/khorser/opensource/vim
  5. " Original author: Dorai Sitaram <ds26@gte.com>
  6. " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
  7. " Last Change: Oct 23, 2013
  8. " Only do this when not done yet for this buffer
  9. if exists("b:did_ftplugin")
  10. finish
  11. endif
  12. " Don't load another plugin for this buffer
  13. let b:did_ftplugin = 1
  14. setl comments=:;
  15. setl define=^\\s*(def\\k*
  16. setl formatoptions-=t
  17. setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
  18. setl lisp
  19. setl commentstring=;%s
  20. setl comments^=:;;;,:;;,sr:#\|,mb:\|,ex:\|#
  21. let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp< commentstring<"