lisp.vim 759 B

12345678910111213141516171819202122232425
  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. " 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=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
  15. setl define=^\\s*(def\\k*
  16. setl formatoptions-=t
  17. setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
  18. setl lisp
  19. setl commentstring=;%s
  20. let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp< commentstring<"