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