lisp.vim 845 B

1234567891011121314151617181920212223242526
  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: Mar 10, 2021
  8. " May 23, 2024 by Riley Bruins <ribru17@gmail.com> ('commentstring')
  9. " Only do this when not done yet for this buffer
  10. if exists("b:did_ftplugin")
  11. finish
  12. endif
  13. " Don't load another plugin for this buffer
  14. let b:did_ftplugin = 1
  15. setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
  16. setl define=^\\s*(def\\k*
  17. setl formatoptions-=t
  18. setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
  19. setl lisp
  20. setl commentstring=;\ %s
  21. let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp< commentstring<"