" Vim support file to switch on loading plugins for file types " " Maintainer: Bram Moolenaar <Bram@vim.org> " Last change: 2006 Apr 30 if exists("did_load_ftplugin") finish endif let did_load_ftplugin = 1 augroup filetypeplugin au FileType * call s:LoadFTPlugin() func! s:LoadFTPlugin() if exists("b:undo_ftplugin") exe b:undo_ftplugin unlet! b:undo_ftplugin b:did_ftplugin endif let 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_ftplugin endif " 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' endfor endif endfunc augroup END
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
autoload | Folder | 0755 |
|
|
colors | Folder | 0755 |
|
|
compiler | Folder | 0755 |
|
|
doc | Folder | 0755 |
|
|
ftplugin | Folder | 0755 |
|
|
indent | Folder | 0755 |
|
|
keymap | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
macros | Folder | 0755 |
|
|
plugin | Folder | 0755 |
|
|
Folder | 0755 |
|
||
spell | Folder | 0755 |
|
|
syntax | Folder | 0755 |
|
|
tutor | Folder | 0755 |
|
|
bugreport.vim | File | 1.91 KB | 0644 |
|
delmenu.vim | File | 645 B | 0644 |
|
evim.vim | File | 1.92 KB | 0644 |
|
filetype.vim | File | 66.82 KB | 0644 |
|
ftoff.vim | File | 280 B | 0644 |
|
ftplugin.vim | File | 971 B | 0644 |
|
ftplugof.vim | File | 337 B | 0644 |
|
gvimrc_example.vim | File | 1.66 KB | 0644 |
|
indent.vim | File | 767 B | 0644 |
|
indoff.vim | File | 282 B | 0644 |
|
menu.vim | File | 37.59 KB | 0644 |
|
mswin.vim | File | 2.59 KB | 0644 |
|
optwin.vim | File | 54.4 KB | 0644 |
|
scripts.vim | File | 10.15 KB | 0644 |
|
synmenu.vim | File | 35.95 KB | 0644 |
|
vimrc_example.vim | File | 3.2 KB | 0644 |
|