Mercurial > vim
comparison runtime/doc/filetype.txt @ 21825:0db0640e16e0
Update runtime files.
Commit: https://github.com/vim/vim/commit/3d1cde8a2f28dce2c82d2b2b4c5e35e6662030e0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 15 18:55:18 2020 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Aug 2020 19:00:04 +0200 |
parents | 9b7f90e56753 |
children | a3bb84cd0f59 |
comparison
equal
deleted
inserted
replaced
21824:91c90e53de36 | 21825:0db0640e16e0 |
---|---|
161 to add it. In any way, it's better not to modify the $VIMRUNTIME/filetype.vim | 161 to add it. In any way, it's better not to modify the $VIMRUNTIME/filetype.vim |
162 file. It will be overwritten when installing a new version of Vim. | 162 file. It will be overwritten when installing a new version of Vim. |
163 | 163 |
164 A. If you want to overrule all default file type checks. | 164 A. If you want to overrule all default file type checks. |
165 This works by writing one file for each filetype. The disadvantage is that | 165 This works by writing one file for each filetype. The disadvantage is that |
166 means there can be many files. The advantage is that you can simply drop | 166 there can be many files. The advantage is that you can simply drop this |
167 this file in the right directory to make it work. | 167 file in the right directory to make it work. |
168 *ftdetect* | 168 *ftdetect* |
169 1. Create your user runtime directory. You would normally use the first | 169 1. Create your user runtime directory. You would normally use the first |
170 item of the 'runtimepath' option. Then create the directory "ftdetect" | 170 item of the 'runtimepath' option. Then create the directory "ftdetect" |
171 inside it. Example for Unix: > | 171 inside it. Example for Unix: > |
172 :!mkdir ~/.vim | 172 :!mkdir ~/.vim |