2 " Language: tmux(1) configuration file
3 " Maintainer: Tiago Cunha <tcunha@users.sourceforge.net>
4 " Last Change: Date: 2010-07-27 18:29:07
5 " License: This file is placed in the public domain.
7 " To install this file:
9 " - Drop the file in the syntax directory into runtimepath (such as
10 " ~/.vim/syntax/tmux.vim).
11 " - Make the filetype recognisable by adding the following to filetype.vim
12 " (~/.vim/filetype.vim):
14 " augroup filetypedetect
15 " au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
18 " - Switch on syntax highlighting by adding "syntax enable" to .vimrc.
23 elseif exists("b:current_syntax")
30 syn keyword tmuxAction any current none
31 syn keyword tmuxBoolean off on
150 \ show-window-options
169 syn keyword tmuxOptsSet
180 \ display-panes-active-colour
181 \ display-panes-colour
191 \ message-command-style
196 \ mouse-select-window
198 \ pane-active-border-style
218 \ status-right-length
229 syn keyword tmuxOptsSetw
254 \ window-status-activity-style
255 \ window-status-bell-style
256 \ window-status-content-style
257 \ window-status-current-format
258 \ window-status-current-style
259 \ window-status-format
260 \ window-status-last-style
261 \ window-status-separator
262 \ window-status-style
266 syn keyword tmuxTodo FIXME NOTE TODO XXX contained
268 syn match tmuxKey /\(C-\|M-\|\^\)\+\S\+/ display
269 syn match tmuxNumber /\d\+/ display
270 syn match tmuxOptions /\s-\a\+/ display
271 syn match tmuxVariable /\w\+=/ display
272 syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
274 syn region tmuxComment start=/#/ end=/$/ contains=tmuxTodo display oneline
275 syn region tmuxString start=/"/ end=/"/ display oneline
276 syn region tmuxString start=/'/ end=/'/ display oneline
278 hi def link tmuxAction Boolean
279 hi def link tmuxBoolean Boolean
280 hi def link tmuxCmds Keyword
281 hi def link tmuxComment Comment
282 hi def link tmuxKey Special
283 hi def link tmuxNumber Number
284 hi def link tmuxOptions Identifier
285 hi def link tmuxOptsSet Function
286 hi def link tmuxOptsSetw Function
287 hi def link tmuxString String
288 hi def link tmuxTodo Todo
289 hi def link tmuxVariable Constant
290 hi def link tmuxVariableExpansion Constant
292 let b:current_syntax = "tmux"