" Vim support file to switch on loading plugins for file types"" Maintainer: Bram Moolenaar <Bram@vim.org>" Last change: 2006 Apr 30if exists("did_load_ftplugin")finishendiflet did_load_ftplugin = 1augroup filetypepluginau FileType * call s:LoadFTPlugin()func! s:LoadFTPlugin()if exists("b:undo_ftplugin")exe b:undo_ftpluginunlet! b:undo_ftplugin b:did_ftpluginendiflet s = expand("<amatch>")if s != ""if &cpo =~# "S" && exists("b:did_ftplugin")" In compatible mode options are reset to the global values, need to" set the local values also when a plugin was already used.unlet b:did_ftpluginendif" When there is a dot it is used to separate filetype names. Thus for" "aaa.bbb" load "aaa" and then "bbb".for name in split(s, '\.')exe 'runtime! ftplugin/' . name . '.vim ftplugin/' . name . '_*.vim ftplugin/' . name . '/*.vim'endforendifendfuncaugroup END
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。