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 / sh.vim < prev    next >
Encoding:
Text File  |  2003-04-16  |  939 b   |  28 lines

  1. " Vim filetype plugin file
  2. " Language:    sh
  3. " Maintainer:    Dan Sharp <dwsharp at hotmail dot com>
  4. " Last Changed: 2003 Apr 16
  5. " URL:        http://mywebpage.netscape.com/sharppeople/vim/ftplugin
  6.  
  7. if exists("b:did_ftplugin") | finish | endif
  8. let b:did_ftplugin = 1
  9.  
  10. setlocal commentstring=#%s
  11.  
  12. " Shell:  thanks to Johannes Zellner
  13. if exists("loaded_matchit") && !exists("b:match_words")
  14.     let s:sol = '\%(;\s*\|^\s*\)\@<='  " start of line
  15.     let b:match_words =
  16.     \ s:sol.'if\>:' . s:sol.'elif\>:' . s:sol.'else\>:' . s:sol. 'fi\>,' .
  17.     \ s:sol.'\%(for\|while\)\>:' . s:sol. 'done\>,' .
  18.     \ s:sol.'case\>:' . s:sol. 'esac\>'
  19. endif
  20.  
  21. " Change the :browse e filter to primarily show shell-related files.
  22. if has("gui_win32") && !exists("b:browsefilter")
  23.     let  b:browsefilter="Bourne Shell Scripts (*.sh)\t*.sh\n" .
  24.         \    "Korn Shell Scripts (*.ksh)\t*.ksh\n" .
  25.         \    "Bash Shell Scripts (*.bash)\t*.bash\n" .
  26.         \    "All Files (*.*)\t*.*\n"
  27. endif
  28.