neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

tcsh.vim (1154B)


      1 " Vim filetype plugin file
      2 " Language:		tcsh
      3 " Maintainer:		Doug Kearns <dougkearns@gmail.com>
      4 " Previous Maintainer:	Dan Sharp
      5 " Last Change:		2024 Jan 14
      6 
      7 if exists("b:did_ftplugin")
      8  finish
      9 endif
     10 
     11 let s:save_cpo = &cpo
     12 set cpo-=C
     13 
     14 " Define some defaults in case the included ftplugins don't set them.
     15 let s:undo_ftplugin = ""
     16 let s:browsefilter = "csh Files (*.csh)\t*.csh\n"
     17 if has("win32")
     18    let s:browsefilter ..= "All Files (*.*)\t*\n"
     19 else
     20    let s:browsefilter ..= "All Files (*)\t*\n"
     21 endif
     22 
     23 runtime! ftplugin/csh.vim ftplugin/csh_*.vim ftplugin/csh/*.vim
     24 let b:did_ftplugin = 1
     25 
     26 " Override our defaults if these were set by an included ftplugin.
     27 if exists("b:undo_ftplugin")
     28  let s:undo_ftplugin = b:undo_ftplugin
     29 endif
     30 if exists("b:browsefilter")
     31  let s:browsefilter = b:browsefilter
     32 endif
     33 
     34 if (has("gui_win32") || has("gui_gtk")) &&
     35      \ (!exists("b:browsefilter") || exists("b:csh_set_browsefilter"))
     36  let b:browsefilter = "tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter
     37  let s:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin
     38 endif
     39 
     40 let b:undo_ftplugin = s:undo_ftplugin
     41 
     42 let &cpo = s:save_cpo
     43 unlet s:save_cpo