solution.vim 959 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. " Vim filetype plugin file
  2. " Language: Microsoft Visual Studio Solution
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2021 Dec 15
  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. let b:undo_ftplugin = "setl com< cms<"
  14. if exists("loaded_matchit") && !exists("b:match_words")
  15. let b:match_words =
  16. \ '\<Project\>:\<EndProject\>,' ..
  17. \ '\<ProjectSection\>:\<EndProjectSection\>,' ..
  18. \ '\<Global\>:\<EndGlobal\>,' ..
  19. \ '\<GlobalSection\>:\<EndGlobalSection\>'
  20. let b:undo_ftplugin ..= " | unlet! b:match_words"
  21. endif
  22. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  23. let b:browsefilter = "Microsoft Visual Studio Solution Files\t*.sln\n" ..
  24. \ "All Files (*.*)\t*.*\n"
  25. let b:undo_ftplugin ..= " | unlet! b:browsefilter"
  26. endif
  27. let &cpo = s:cpo_save
  28. unlet s:cpo_save
  29. " vim: nowrap sw=2 sts=2 ts=8 noet: