Monday, July 30, 2012

Re: Filetype detection on vim

On 2012-07-30, ping wrote:
> >>
> >>
> >>What I recommend is to add a new filetype.vim in one of the following
> >>
> >>places (shown as they would appear in Vim):
> >>
> >>
> >>
> >>- Single-user on Windows
> >>
> >> $HOME/vimfiles/filetype.vim
> >>
> >
> >I actually prefer creating a file per filetype in
> >$HOME/vimfiles/ftdetect, as detailed at the beginning of
> >:help new-filetype
> >
>
> vim help doesn't mention anything about vimfiles directory...

It does,

:help vimfiles
:helpgrep vimfiles

but not explicitly in the file containing ":help new-filetype".

It would make the Vim documentation very wordy to mention both
$HOME/.vim for Unix and $HOME/vimfiles for Windows everywhere that
directory is referred to, so it is expected that the reader knows
that in most cases where "~/.vim" is used, that that directory is
used on Unix and that the Windows equivalent is $HOME/vimfiles.

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: