cs.vim 802 B

123456789101112131415161718192021222324252627282930
  1. " Vim filetype plugin file
  2. " Language: C#
  3. " Maintainer: Johannes Zellner <johannes@zellner.org>
  4. " Last Change: Tue, 09 Mar 2004 14:09:33 CET
  5. " Only do this when not done yet for this buffer
  6. if exists("b:did_ftplugin")
  7. finish
  8. endif
  9. " Don't load another plugin for this buffer
  10. let b:did_ftplugin = 1
  11. let s:keepcpo= &cpo
  12. set cpo&vim
  13. " Set 'formatoptions' to break comment lines but not other lines,
  14. " and insert the comment leader when hitting <CR> or using "o".
  15. setlocal fo-=t fo+=croql
  16. " Set 'comments' to format dashed lists in comments.
  17. setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
  18. if has("gui_win32") && !exists("b:browsefilter")
  19. let b:browsefilter = "C# Source Files (*.cs)\t*.cs\n" .
  20. \ "All Files (*.*)\t*.*\n"
  21. endif
  22. let &cpo = s:keepcpo
  23. unlet s:keepcpo