summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorEric Pruitt <eric.pruitt@gmail.com>2021-10-12 13:58:23 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-12 13:58:23 +0100
commite519eb41c1c12836b2d12aeb703bb04c7618a724 (patch)
tree7f2cd4764d37c116b7fd9d20fca1c265d54aeeec /runtime
parent3a724290c5dd8e4b7c9a1fa8941b81f6f80db00a (diff)
patch 8.2.3501: tmux filetype dection is incompletev8.2.3501
Problem: tmux filetype dection is incomplete Solution: Also use tmux for files having text after .conf. (Eric Pruitt, closes #8971)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 9b18b1b73a..247e873d0f 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2305,6 +2305,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')