Mercurial > vim
view runtime/plugin/spellfile.vim @ 33912:bc834a974df8
runtime(filetype): ft detection maybe wrong if 'fic' set for *.[CH]
Commit: https://github.com/vim/vim/commit/fa920da283f6651083b40d0aa28a9eacd5116593
Author: shane.xb.qian <shane.qian@foxmail.com>
Date: Mon Dec 11 17:33:03 2023 +0100
runtime(filetype): ft detection maybe wrong if 'fic' set for *.[CH]
So only set the filetype to cpp for *.C and *.H files, if
'fileignorecase' option is not set.
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 11 Dec 2023 17:45:05 +0100 |
parents | 4027cefc2aab |
children |
line wrap: on
line source
" Vim plugin for downloading spell files " Maintainer: The Vim Project <https://github.com/vim/vim> " Last Change: 2023 Aug 10 " Former Maintainer: Bram Moolenaar <Bram@vim.org> " Exit quickly when: " - this plugin was already loaded " - when 'compatible' is set " - some autocommands are already taking care of spell files if exists("loaded_spellfile_plugin") || &cp || exists("#SpellFileMissing") finish endif let loaded_spellfile_plugin = 1 " The function is in the autoload directory. autocmd SpellFileMissing * call spellfile#LoadFile(expand('<amatch>'))