Eric Pruitt wrote:
> On Wed, Mar 08, 2017 at 02:09:51AM -0800, mattn wrote:
> > On Wednesday, March 8, 2017 at 7:07:58 PM UTC+9, mattn wrote:
> > > ~/.tmux.conf is not detected as filetype=tmux because filetype command
> > > doesn't match it.
> > >
> > > diff --git a/runtime/filetype.vim b/runtime/filetype.vim
> > > index 20e9af4a8..df0397be2 100644
> > > --- a/runtime/filetype.vim
> > > +++ b/runtime/filetype.vim
> > > @@ -2281,7 +2281,7 @@ au BufNewFile,BufRead .tidyrc,tidyrc
> > > setf tidy
> > > au BufNewFile,BufRead *.tf,.tfrc,tfrc setf tf
> > >
> > > " tmux configuration
> > > -au BufNewFile,BufRead tmux*.conf setf tmux
> > > +au BufNewFile,BufRead {.,}tmux*.conf setf tmux
> > >
> > > " TPP - Text Presentation Program
> > > au BufNewFile,BufReadPost *.tpp setf tpp
> >
> > ericpruitt/tmux.vim define it more strictly.
> >
> > https://github.com/ericpruitt/tmux.vim/blob/37b1e21911ef0d9a56127c3733cc6953ce0c3dde/vim/ftdetect/tmux.vim#L1
> >
> > autocmd BufNewFile,BufRead {.,}tmux*.conf* setfiletype tmux
>
> Yes; much to my chagrin, the files were merged with changes I did not
> approve:
>
> - https://github.com/vim/vim/issues/1538
> - https://github.com/vim/vim/pull/1529#issuecomment-284419998
The trailing "*" is not good, it will match too much.
If it is really needed, it should be done near the end of the file.
But I haven't heard why it would be needed.
--
You can't have everything. Where would you put it?
-- Steven Wright
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.