home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / ftplugin / occam.vim < prev    next >
Encoding:
Text File  |  2003-05-11  |  1.0 KB  |  40 lines

  1. " Vim filetype plugin file
  2. " Language:    occam
  3. " Copyright:    Christian Jacobsen <clj3@kent.ac.uk>, Mario Schweigler <ms44@kent.ac.uk>
  4. " Maintainer:    Mario Schweigler <ms44@kent.ac.uk>
  5. " Last Change:    23 April 2003
  6.  
  7. " Only do this when not done yet for this buffer
  8. if exists("b:did_ftplugin")
  9.   finish
  10. endif
  11. let b:did_ftplugin = 1
  12.  
  13. "{{{  Indent settings
  14. " Set shift width for indent
  15. setlocal shiftwidth=2
  16. " Set the tab key size to two spaces
  17. setlocal softtabstop=2
  18. " Let tab keys always be expanded to spaces
  19. setlocal expandtab
  20. "}}}
  21.  
  22. "{{{  Formatting
  23. " Break comment lines and insert comment leader in this case
  24. setlocal formatoptions-=t formatoptions+=cql
  25. setlocal comments+=:--
  26. " Maximum length of comments is 78
  27. setlocal textwidth=78
  28. "}}}
  29.  
  30. "{{{  File browsing filters
  31. " Win32 can filter files in the browse dialog
  32. if has("gui_win32") && !exists("b:browsefilter")
  33.   let b:browsefilter = "All Occam Files (*.occ *.inc)\t*.occ;*.inc\n" .
  34.     \ "Occam Include Files (*.inc)\t*.inc\n" .
  35.     \ "Occam Source Files (*.occ)\t*.occ\n" .
  36.     \ "All Files (*.*)\t*.*\n"
  37. endif
  38. "}}}
  39.  
  40.