lynx.vim 723 B

123456789101112131415161718192021222324252627282930
  1. " Vim filetype plugin file
  2. " Language: Lynx Web Browser Configuration
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2022 Sep 09
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. setlocal comments=:#
  12. setlocal commentstring=#\ %s
  13. setlocal formatoptions-=t formatoptions+=croql
  14. let b:undo_ftplugin = "setl cms< com< fo<"
  15. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  16. let b:browsefilter = "Lynx Configuration Files (lynx.cfg .lynxrc)\tlynx.cfg;.lynxrc\n" ..
  17. \ "All Files (*.*)\t*.*\n"
  18. let b:undo_ftplugin ..= " | unlet! b:browsefilter"
  19. endif
  20. let &cpo = s:cpo_save
  21. unlet s:cpo_save
  22. " vim: nowrap sw=2 sts=2 ts=8 noet: