From 1ced6cf08c1bf819df76e3830ae12f76e987f151 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sat, 16 Oct 2021 02:01:36 +0200 Subject: vim-patch:8.2.3501: tmux filetype dection is incomplete (#16021) Problem: tmux filetype dection is incomplete Solution: Also use tmux for files having text after .conf. (Eric Pruitt, closes vim/vim#8971) https://github.com/vim/vim/commit/e519eb41c1c12836b2d12aeb703bb04c7618a724 --- runtime/filetype.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime') diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c86ca9646b..a9202f2b9e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2301,6 +2301,9 @@ au BufNewFile,BufRead .tcshrc* call dist#ft#SetFileTypeShell("tcsh") " csh scripts ending in a star au BufNewFile,BufRead .login*,.cshrc* call dist#ft#CSH() +" tmux configuration with arbitrary extension +au BufNewFile,BufRead {.,}tmux*.conf* setf tmux + " VHDL au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') -- cgit