xref: /minix3/external/bsd/tmux/dist/examples/tmux.vim (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1eda6f593SDavid van Moolenbroek" Vim syntax file
2eda6f593SDavid van Moolenbroek" Language: tmux(1) configuration file
3*0a6a1f1dSLionel Sambuc" Maintainer: Tiago Cunha <tcunha@users.sourceforge.net>
4*0a6a1f1dSLionel Sambuc" Last Change: Date: 2010-07-27 18:29:07
5eda6f593SDavid van Moolenbroek" License: This file is placed in the public domain.
6*0a6a1f1dSLionel Sambuc"
7*0a6a1f1dSLionel Sambuc" To install this file:
8*0a6a1f1dSLionel Sambuc"
9*0a6a1f1dSLionel Sambuc" - Drop the file in the syntax directory into runtimepath (such as
10*0a6a1f1dSLionel Sambuc"  ~/.vim/syntax/tmux.vim).
11*0a6a1f1dSLionel Sambuc" - Make the filetype recognisable by adding the following to filetype.vim
12*0a6a1f1dSLionel Sambuc"   (~/.vim/filetype.vim):
13*0a6a1f1dSLionel Sambuc"
14*0a6a1f1dSLionel Sambuc"	augroup filetypedetect
15*0a6a1f1dSLionel Sambuc"		au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
16*0a6a1f1dSLionel Sambuc"	augroup END
17*0a6a1f1dSLionel Sambuc"
18*0a6a1f1dSLionel Sambuc" - Switch on syntax highlighting by adding "syntax enable" to .vimrc.
19*0a6a1f1dSLionel Sambuc"
20eda6f593SDavid van Moolenbroek
21eda6f593SDavid van Moolenbroekif version < 600
22eda6f593SDavid van Moolenbroek	syntax clear
23eda6f593SDavid van Moolenbroekelseif exists("b:current_syntax")
24eda6f593SDavid van Moolenbroek	finish
25eda6f593SDavid van Moolenbroekendif
26eda6f593SDavid van Moolenbroek
27eda6f593SDavid van Moolenbroeksetlocal iskeyword+=-
28eda6f593SDavid van Moolenbroeksyntax case match
29eda6f593SDavid van Moolenbroek
30eda6f593SDavid van Moolenbroeksyn keyword tmuxAction	any current none
31eda6f593SDavid van Moolenbroeksyn keyword tmuxBoolean	off on
32eda6f593SDavid van Moolenbroek
33*0a6a1f1dSLionel Sambucsyn keyword tmuxCmds
34*0a6a1f1dSLionel Sambuc	\ attach[-session]
35*0a6a1f1dSLionel Sambuc	\ bind[-key]
36*0a6a1f1dSLionel Sambuc	\ break-pane
37*0a6a1f1dSLionel Sambuc	\ breakp
38*0a6a1f1dSLionel Sambuc	\ capture-pane
39*0a6a1f1dSLionel Sambuc	\ capturep
40*0a6a1f1dSLionel Sambuc	\ choose-buffer
41*0a6a1f1dSLionel Sambuc	\ choose-client
42*0a6a1f1dSLionel Sambuc	\ choose-list
43*0a6a1f1dSLionel Sambuc	\ choose-session
44*0a6a1f1dSLionel Sambuc	\ choose-tree
45*0a6a1f1dSLionel Sambuc	\ choose-window
46*0a6a1f1dSLionel Sambuc	\ clear-history
47*0a6a1f1dSLionel Sambuc	\ clearhist
48*0a6a1f1dSLionel Sambuc	\ clock-mode
49*0a6a1f1dSLionel Sambuc	\ command-prompt
50*0a6a1f1dSLionel Sambuc	\ confirm[-before]
51*0a6a1f1dSLionel Sambuc	\ copy-mode
52*0a6a1f1dSLionel Sambuc	\ delete-buffer
53*0a6a1f1dSLionel Sambuc	\ deleteb
54*0a6a1f1dSLionel Sambuc	\ detach[-client]
55*0a6a1f1dSLionel Sambuc	\ display[-message]
56*0a6a1f1dSLionel Sambuc	\ display-panes
57*0a6a1f1dSLionel Sambuc	\ displayp
58*0a6a1f1dSLionel Sambuc	\ find-window
59*0a6a1f1dSLionel Sambuc	\ findw
60*0a6a1f1dSLionel Sambuc	\ has[-session]
61*0a6a1f1dSLionel Sambuc	\ if[-shell]
62*0a6a1f1dSLionel Sambuc	\ join-pane
63*0a6a1f1dSLionel Sambuc	\ joinp
64*0a6a1f1dSLionel Sambuc	\ kill-pane
65*0a6a1f1dSLionel Sambuc	\ killp
66*0a6a1f1dSLionel Sambuc	\ kill-server
67*0a6a1f1dSLionel Sambuc	\ kill-session
68*0a6a1f1dSLionel Sambuc	\ kill-window
69*0a6a1f1dSLionel Sambuc	\ killw
70*0a6a1f1dSLionel Sambuc	\ last-pane
71*0a6a1f1dSLionel Sambuc	\ lastp
72*0a6a1f1dSLionel Sambuc	\ last[-window]
73*0a6a1f1dSLionel Sambuc	\ link-window
74*0a6a1f1dSLionel Sambuc	\ linkw
75*0a6a1f1dSLionel Sambuc	\ list-buffers
76*0a6a1f1dSLionel Sambuc	\ lsb
77*0a6a1f1dSLionel Sambuc	\ list-clients
78*0a6a1f1dSLionel Sambuc	\ lsc
79*0a6a1f1dSLionel Sambuc	\ list-commands
80*0a6a1f1dSLionel Sambuc	\ lscm
81*0a6a1f1dSLionel Sambuc	\ list-keys
82*0a6a1f1dSLionel Sambuc	\ lsk
83*0a6a1f1dSLionel Sambuc	\ list-panes
84*0a6a1f1dSLionel Sambuc	\ lsp
85*0a6a1f1dSLionel Sambuc	\ list-sessions
86*0a6a1f1dSLionel Sambuc	\ ls
87*0a6a1f1dSLionel Sambuc	\ list-windows
88*0a6a1f1dSLionel Sambuc	\ lsw
89*0a6a1f1dSLionel Sambuc	\ load-buffer
90*0a6a1f1dSLionel Sambuc	\ loadb
91*0a6a1f1dSLionel Sambuc	\ lock-client
92*0a6a1f1dSLionel Sambuc	\ lockc
93*0a6a1f1dSLionel Sambuc	\ lock[-server]
94*0a6a1f1dSLionel Sambuc	\ lock-session
95*0a6a1f1dSLionel Sambuc	\ locks
96*0a6a1f1dSLionel Sambuc	\ move-pane
97*0a6a1f1dSLionel Sambuc	\ movep
98*0a6a1f1dSLionel Sambuc	\ move-window
99*0a6a1f1dSLionel Sambuc	\ movew
100*0a6a1f1dSLionel Sambuc	\ new[-session]
101*0a6a1f1dSLionel Sambuc	\ next-layout
102*0a6a1f1dSLionel Sambuc	\ nextl
103*0a6a1f1dSLionel Sambuc	\ next[-window]
104*0a6a1f1dSLionel Sambuc	\ paste-buffer
105*0a6a1f1dSLionel Sambuc	\ pasteb
106*0a6a1f1dSLionel Sambuc	\ pipe-pane
107*0a6a1f1dSLionel Sambuc	\ pipep
108*0a6a1f1dSLionel Sambuc	\ previous-layout
109*0a6a1f1dSLionel Sambuc	\ prevl
110*0a6a1f1dSLionel Sambuc	\ prev[ious-window]
111*0a6a1f1dSLionel Sambuc	\ refresh[-client]
112*0a6a1f1dSLionel Sambuc	\ rename[-session]
113*0a6a1f1dSLionel Sambuc	\ rename-window
114*0a6a1f1dSLionel Sambuc	\ renamew
115*0a6a1f1dSLionel Sambuc	\ resize-pane
116*0a6a1f1dSLionel Sambuc	\ resizep
117*0a6a1f1dSLionel Sambuc	\ respawn-pane
118*0a6a1f1dSLionel Sambuc	\ respawnp
119*0a6a1f1dSLionel Sambuc	\ respawn-window
120*0a6a1f1dSLionel Sambuc	\ respawnw
121*0a6a1f1dSLionel Sambuc	\ rotate-window
122*0a6a1f1dSLionel Sambuc	\ rotatew
123*0a6a1f1dSLionel Sambuc	\ run[-shell]
124*0a6a1f1dSLionel Sambuc	\ save-buffer
125*0a6a1f1dSLionel Sambuc	\ saveb
126*0a6a1f1dSLionel Sambuc	\ select-layout
127*0a6a1f1dSLionel Sambuc	\ selectl
128*0a6a1f1dSLionel Sambuc	\ select-pane
129*0a6a1f1dSLionel Sambuc	\ selectp
130*0a6a1f1dSLionel Sambuc	\ select-window
131*0a6a1f1dSLionel Sambuc	\ selectw
132*0a6a1f1dSLionel Sambuc	\ send[-keys]
133*0a6a1f1dSLionel Sambuc	\ send-prefix
134*0a6a1f1dSLionel Sambuc	\ server-info
135*0a6a1f1dSLionel Sambuc	\ info
136*0a6a1f1dSLionel Sambuc	\ set-buffer
137*0a6a1f1dSLionel Sambuc	\ setb
138*0a6a1f1dSLionel Sambuc	\ set-environment
139*0a6a1f1dSLionel Sambuc	\ setenv
140*0a6a1f1dSLionel Sambuc	\ set[-option]
141*0a6a1f1dSLionel Sambuc	\ set-window-option
142*0a6a1f1dSLionel Sambuc	\ setw
143*0a6a1f1dSLionel Sambuc	\ show-buffer
144*0a6a1f1dSLionel Sambuc	\ showb
145*0a6a1f1dSLionel Sambuc	\ show-environment
146*0a6a1f1dSLionel Sambuc	\ showenv
147*0a6a1f1dSLionel Sambuc	\ show-messages
148*0a6a1f1dSLionel Sambuc	\ showmsgs
149*0a6a1f1dSLionel Sambuc	\ show[-options]
150*0a6a1f1dSLionel Sambuc	\ show-window-options
151*0a6a1f1dSLionel Sambuc	\ showw
152*0a6a1f1dSLionel Sambuc	\ source[-file]
153*0a6a1f1dSLionel Sambuc	\ split-window
154*0a6a1f1dSLionel Sambuc	\ splitw
155*0a6a1f1dSLionel Sambuc	\ start[-server]
156*0a6a1f1dSLionel Sambuc	\ suspend-client
157*0a6a1f1dSLionel Sambuc	\ suspendc
158*0a6a1f1dSLionel Sambuc	\ swap-pane
159*0a6a1f1dSLionel Sambuc	\ swapp
160*0a6a1f1dSLionel Sambuc	\ swap-window
161*0a6a1f1dSLionel Sambuc	\ swapw
162*0a6a1f1dSLionel Sambuc	\ switch-client
163*0a6a1f1dSLionel Sambuc	\ switchc
164*0a6a1f1dSLionel Sambuc	\ unbind[-key]
165*0a6a1f1dSLionel Sambuc	\ unlink-window
166*0a6a1f1dSLionel Sambuc	\ unlinkw
167*0a6a1f1dSLionel Sambuc	\ wait[-for]
168eda6f593SDavid van Moolenbroek
169*0a6a1f1dSLionel Sambucsyn keyword tmuxOptsSet
170*0a6a1f1dSLionel Sambuc	\ assume-paste-time
171*0a6a1f1dSLionel Sambuc	\ base-index
172*0a6a1f1dSLionel Sambuc	\ bell-action
173*0a6a1f1dSLionel Sambuc	\ bell-on-alert
174*0a6a1f1dSLionel Sambuc	\ buffer-limit
175*0a6a1f1dSLionel Sambuc	\ default-command
176*0a6a1f1dSLionel Sambuc	\ default-shell
177*0a6a1f1dSLionel Sambuc	\ default-terminal
178*0a6a1f1dSLionel Sambuc	\ destroy-unattached
179*0a6a1f1dSLionel Sambuc	\ detach-on-destroy
180*0a6a1f1dSLionel Sambuc	\ display-panes-active-colour
181*0a6a1f1dSLionel Sambuc	\ display-panes-colour
182*0a6a1f1dSLionel Sambuc	\ display-panes-time
183*0a6a1f1dSLionel Sambuc	\ display-time
184*0a6a1f1dSLionel Sambuc	\ escape-time
185*0a6a1f1dSLionel Sambuc	\ exit-unattached
186*0a6a1f1dSLionel Sambuc	\ focus-events
187*0a6a1f1dSLionel Sambuc	\ history-limit
188*0a6a1f1dSLionel Sambuc	\ lock-after-time
189*0a6a1f1dSLionel Sambuc	\ lock-command
190*0a6a1f1dSLionel Sambuc	\ lock-server
191*0a6a1f1dSLionel Sambuc	\ message-command-style
192*0a6a1f1dSLionel Sambuc	\ message-limit
193*0a6a1f1dSLionel Sambuc	\ message-style
194*0a6a1f1dSLionel Sambuc	\ mouse-resize-pane
195*0a6a1f1dSLionel Sambuc	\ mouse-select-pane
196*0a6a1f1dSLionel Sambuc	\ mouse-select-window
197*0a6a1f1dSLionel Sambuc	\ mouse-utf8
198*0a6a1f1dSLionel Sambuc	\ pane-active-border-style
199*0a6a1f1dSLionel Sambuc	\ pane-border-style
200*0a6a1f1dSLionel Sambuc	\ prefix
201*0a6a1f1dSLionel Sambuc	\ prefix2
202*0a6a1f1dSLionel Sambuc	\ quiet
203*0a6a1f1dSLionel Sambuc	\ renumber-windows
204*0a6a1f1dSLionel Sambuc	\ repeat-time
205*0a6a1f1dSLionel Sambuc	\ set-clipboard
206*0a6a1f1dSLionel Sambuc	\ set-remain-on-exit
207*0a6a1f1dSLionel Sambuc	\ set-titles
208*0a6a1f1dSLionel Sambuc	\ set-titles-string
209*0a6a1f1dSLionel Sambuc	\ status
210*0a6a1f1dSLionel Sambuc	\ status-interval
211*0a6a1f1dSLionel Sambuc	\ status-justify
212*0a6a1f1dSLionel Sambuc	\ status-keys
213*0a6a1f1dSLionel Sambuc	\ status-left
214*0a6a1f1dSLionel Sambuc	\ status-left-length
215*0a6a1f1dSLionel Sambuc	\ status-left-style
216*0a6a1f1dSLionel Sambuc	\ status-position
217*0a6a1f1dSLionel Sambuc	\ status-right
218*0a6a1f1dSLionel Sambuc	\ status-right-length
219*0a6a1f1dSLionel Sambuc	\ status-utf8
220*0a6a1f1dSLionel Sambuc	\ staus-right-style
221*0a6a1f1dSLionel Sambuc	\ terminal-overrides
222*0a6a1f1dSLionel Sambuc	\ update-environment
223*0a6a1f1dSLionel Sambuc	\ visual-activity
224*0a6a1f1dSLionel Sambuc	\ visual-bell
225*0a6a1f1dSLionel Sambuc	\ visual-content
226*0a6a1f1dSLionel Sambuc	\ visual-silence
227*0a6a1f1dSLionel Sambuc	\ word-separators
228eda6f593SDavid van Moolenbroek
229*0a6a1f1dSLionel Sambucsyn keyword tmuxOptsSetw
230*0a6a1f1dSLionel Sambuc	\ aggressive-resize
231*0a6a1f1dSLionel Sambuc	\ allow-rename
232*0a6a1f1dSLionel Sambuc	\ alternate-screen
233*0a6a1f1dSLionel Sambuc	\ automatic-rename
234*0a6a1f1dSLionel Sambuc	\ c0-change-interval
235*0a6a1f1dSLionel Sambuc	\ c0-change-trigger
236*0a6a1f1dSLionel Sambuc	\ clock-mode-colour
237*0a6a1f1dSLionel Sambuc	\ clock-mode-style
238*0a6a1f1dSLionel Sambuc	\ force-height
239*0a6a1f1dSLionel Sambuc	\ force-width
240*0a6a1f1dSLionel Sambuc	\ main-pane-height
241*0a6a1f1dSLionel Sambuc	\ main-pane-width
242*0a6a1f1dSLionel Sambuc	\ mode-keys
243*0a6a1f1dSLionel Sambuc	\ mode-mouse
244*0a6a1f1dSLionel Sambuc	\ mode-style
245*0a6a1f1dSLionel Sambuc	\ monitor-activity
246*0a6a1f1dSLionel Sambuc	\ monitor-content
247*0a6a1f1dSLionel Sambuc	\ monitor-silence
248*0a6a1f1dSLionel Sambuc	\ other-pane-height
249*0a6a1f1dSLionel Sambuc	\ other-pane-width
250*0a6a1f1dSLionel Sambuc	\ pane-base-index
251*0a6a1f1dSLionel Sambuc	\ remain-on-exit
252*0a6a1f1dSLionel Sambuc	\ synchronize-panes
253*0a6a1f1dSLionel Sambuc	\ utf8
254*0a6a1f1dSLionel Sambuc	\ window-status-activity-style
255*0a6a1f1dSLionel Sambuc	\ window-status-bell-style
256*0a6a1f1dSLionel Sambuc	\ window-status-content-style
257*0a6a1f1dSLionel Sambuc	\ window-status-current-format
258*0a6a1f1dSLionel Sambuc	\ window-status-current-style
259*0a6a1f1dSLionel Sambuc	\ window-status-format
260*0a6a1f1dSLionel Sambuc	\ window-status-last-style
261*0a6a1f1dSLionel Sambuc	\ window-status-separator
262*0a6a1f1dSLionel Sambuc	\ window-status-style
263*0a6a1f1dSLionel Sambuc	\ wrap-search
264*0a6a1f1dSLionel Sambuc	\ xterm-keys
265eda6f593SDavid van Moolenbroek
266eda6f593SDavid van Moolenbroeksyn keyword tmuxTodo FIXME NOTE TODO XXX contained
267eda6f593SDavid van Moolenbroek
268*0a6a1f1dSLionel Sambucsyn match tmuxKey		/\(C-\|M-\|\^\)\+\S\+/	display
269eda6f593SDavid van Moolenbroeksyn match tmuxNumber 		/\d\+/			display
270eda6f593SDavid van Moolenbroeksyn match tmuxOptions		/\s-\a\+/		display
271eda6f593SDavid van Moolenbroeksyn match tmuxVariable		/\w\+=/			display
272eda6f593SDavid van Moolenbroeksyn match tmuxVariableExpansion	/\${\=\w\+}\=/		display
273eda6f593SDavid van Moolenbroek
274eda6f593SDavid van Moolenbroeksyn region tmuxComment	start=/#/ end=/$/ contains=tmuxTodo display oneline
275eda6f593SDavid van Moolenbroeksyn region tmuxString	start=/"/ end=/"/ display oneline
276eda6f593SDavid van Moolenbroeksyn region tmuxString	start=/'/ end=/'/ display oneline
277eda6f593SDavid van Moolenbroek
278eda6f593SDavid van Moolenbroekhi def link tmuxAction			Boolean
279eda6f593SDavid van Moolenbroekhi def link tmuxBoolean			Boolean
280eda6f593SDavid van Moolenbroekhi def link tmuxCmds			Keyword
281eda6f593SDavid van Moolenbroekhi def link tmuxComment			Comment
282eda6f593SDavid van Moolenbroekhi def link tmuxKey			Special
283eda6f593SDavid van Moolenbroekhi def link tmuxNumber			Number
284eda6f593SDavid van Moolenbroekhi def link tmuxOptions			Identifier
285eda6f593SDavid van Moolenbroekhi def link tmuxOptsSet			Function
286eda6f593SDavid van Moolenbroekhi def link tmuxOptsSetw		Function
287eda6f593SDavid van Moolenbroekhi def link tmuxString			String
288eda6f593SDavid van Moolenbroekhi def link tmuxTodo			Todo
289eda6f593SDavid van Moolenbroekhi def link tmuxVariable		Constant
290eda6f593SDavid van Moolenbroekhi def link tmuxVariableExpansion	Constant
291eda6f593SDavid van Moolenbroek
292eda6f593SDavid van Moolenbroeklet b:current_syntax = "tmux"
293