On Wednesday, March 8, 2017 at 7:07:58 PM UTC+9, mattn wrote:
> hi list.
> 
> ~/.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

-- 
-- 
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.

Raspunde prin e-mail lui