1" Vim syntax file 2" Language: tmux(1) configuration file 3" Maintainer: Tiago Cunha <me@tiagocunha.org> 4" Last Change: $Date: 2011/08/17 18:40:06 $ 5" License: This file is placed in the public domain. 6 7if version < 600 8 syntax clear 9elseif exists("b:current_syntax") 10 finish 11endif 12 13setlocal iskeyword+=- 14syntax case match 15 16syn keyword tmuxAction any current none 17syn keyword tmuxBoolean off on 18 19syn keyword tmuxCmds detach[-client] ls list-sessions neww new-window 20syn keyword tmuxCmds bind[-key] unbind[-key] prev[ious-window] last[-window] 21syn keyword tmuxCmds lsk list-keys set[-option] renamew rename-window selectw 22syn keyword tmuxCmds select-window lsw list-windows attach[-session] 23syn keyword tmuxCmds send-prefix refresh[-client] killw kill-window lsc 24syn keyword tmuxCmds list-clients linkw link-window unlinkw unlink-window 25syn keyword tmuxCmds next[-window] send[-keys] swapw swap-window 26syn keyword tmuxCmds rename[-session] kill-session switchc switch-client 27syn keyword tmuxCmds has[-session] copy-mode pasteb paste-buffer 28syn keyword tmuxCmds new[-session] start[-server] kill-server setw 29syn keyword tmuxCmds set-window-option show[-options] showw show-window-options 30syn keyword tmuxCmds command-prompt setb set-buffer showb show-buffer lsb 31syn keyword tmuxCmds list-buffers deleteb delete-buffer lscm list-commands 32syn keyword tmuxCmds movew move-window respawnw respawn-window 33syn keyword tmuxCmds source[-file] info server-info clock-mode lock[-server] 34syn keyword tmuxCmds saveb save-buffer killp 35syn keyword tmuxCmds kill-pane resizep resize-pane selectp select-pane swapp 36syn keyword tmuxCmds swap-pane splitw split-window choose-session 37syn keyword tmuxCmds choose-window loadb load-buffer copyb copy-buffer suspendc 38syn keyword tmuxCmds suspend-client findw find-window breakp break-pane nextl 39syn keyword tmuxCmds next-layout rotatew rotate-window confirm[-before] 40syn keyword tmuxCmds clearhist clear-history selectl select-layout if[-shell] 41syn keyword tmuxCmds display[-message] setenv set-environment showenv 42syn keyword tmuxCmds show-environment choose-client displayp display-panes 43syn keyword tmuxCmds run[-shell] lockc lock-client locks lock-session lsp 44syn keyword tmuxCmds list-panes pipep pipe-pane showmsgs show-messages capturep 45syn keyword tmuxCmds capture-pane joinp join-pane choose-buffer 46 47syn keyword tmuxOptsSet prefix status status-fg status-bg bell-action 48syn keyword tmuxOptsSet default-command history-limit status-left status-right 49syn keyword tmuxOptsSet status-interval set-titles display-time buffer-limit 50syn keyword tmuxOptsSet status-left-length status-right-length message-fg 51syn keyword tmuxOptsSet message-bg lock-after-time default-path repeat-time 52syn keyword tmuxOptsSet message-attr status-attr status-keys set-remain-on-exit 53syn keyword tmuxOptsSet status-utf8 default-terminal visual-activity 54syn keyword tmuxOptsSet visual-bell visual-content status-justify 55syn keyword tmuxOptsSet terminal-overrides status-left-attr status-left-bg 56syn keyword tmuxOptsSet status-left-fg status-right-attr status-right-bg 57syn keyword tmuxOptsSet status-right-fg update-environment base-index 58syn keyword tmuxOptsSet display-panes-colour display-panes-time default-shell 59syn keyword tmuxOptsSet set-titles-string lock-command lock-server 60syn keyword tmuxOptsSet mouse-select-pane message-limit quiet escape-time 61syn keyword tmuxOptsSet pane-active-border-bg pane-active-border-fg 62syn keyword tmuxOptsSet pane-border-bg pane-border-fg 63syn keyword tmuxOptsSet display-panes-active-colour alternate-screen 64syn keyword tmuxOptsSet detach-on-destroy 65 66syn keyword tmuxOptsSetw monitor-activity aggressive-resize force-width 67syn keyword tmuxOptsSetw force-height remain-on-exit uft8 mode-fg mode-bg 68syn keyword tmuxOptsSetw mode-keys clock-mode-colour clock-mode-style 69syn keyword tmuxOptsSetw xterm-keys mode-attr window-status-attr 70syn keyword tmuxOptsSetw window-status-bg window-status-fg automatic-rename 71syn keyword tmuxOptsSetw main-pane-width main-pane-height monitor-content 72syn keyword tmuxOptsSetw window-status-current-attr window-status-current-bg 73syn keyword tmuxOptsSetw window-status-current-fg mode-mouse synchronize-panes 74syn keyword tmuxOptsSetw window-status-format window-status-current-format 75syn keyword tmuxOptsSetw word-separators window-status-alert-alert 76syn keyword tmuxOptsSetw window-status-alert-bg window-status-alert-fg 77 78syn keyword tmuxTodo FIXME NOTE TODO XXX contained 79 80syn match tmuxKey /\(C-\|M-\|\^\)\p/ display 81syn match tmuxNumber /\d\+/ display 82syn match tmuxOptions /\s-\a\+/ display 83syn match tmuxVariable /\w\+=/ display 84syn match tmuxVariableExpansion /\${\=\w\+}\=/ display 85 86syn region tmuxComment start=/#/ end=/$/ contains=tmuxTodo display oneline 87syn region tmuxString start=/"/ end=/"/ display oneline 88syn region tmuxString start=/'/ end=/'/ display oneline 89 90hi def link tmuxAction Boolean 91hi def link tmuxBoolean Boolean 92hi def link tmuxCmds Keyword 93hi def link tmuxComment Comment 94hi def link tmuxKey Special 95hi def link tmuxNumber Number 96hi def link tmuxOptions Identifier 97hi def link tmuxOptsSet Function 98hi def link tmuxOptsSetw Function 99hi def link tmuxString String 100hi def link tmuxTodo Todo 101hi def link tmuxVariable Constant 102hi def link tmuxVariableExpansion Constant 103 104let b:current_syntax = "tmux" 105