]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - vim/vim/syntax/tmux.vim
vim: syntax: update perl
[config/dotfiles.git] / vim / 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/02 02:46:39 $
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 downp down-pane killp
35 syn keyword tmuxCmds kill-pane resizep resize-pane selectp select-pane swapp
36 syn keyword tmuxCmds swap-pane splitw split-window upp up-pane 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 message-fg
51 syn keyword tmuxOptsSet message-bg lock-after-time default-path repeat-time
52 syn keyword tmuxOptsSet message-attr status-attr status-keys set-remain-on-exit
53 syn keyword tmuxOptsSet status-utf8 default-terminal visual-activity
54 syn keyword tmuxOptsSet visual-bell visual-content status-justify
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
63 syn keyword tmuxOptsSet display-panes-active-colour alternate-screen
64 syn keyword tmuxOptsSet detach-on-destroy
65
66 syn keyword tmuxOptsSetw monitor-activity aggressive-resize force-width
67 syn keyword tmuxOptsSetw force-height remain-on-exit uft8 mode-fg mode-bg
68 syn keyword tmuxOptsSetw mode-keys clock-mode-colour clock-mode-style
69 syn keyword tmuxOptsSetw xterm-keys mode-attr window-status-attr
70 syn keyword tmuxOptsSetw window-status-bg window-status-fg automatic-rename
71 syn keyword tmuxOptsSetw main-pane-width main-pane-height monitor-content
72 syn keyword tmuxOptsSetw window-status-current-attr window-status-current-bg
73 syn keyword tmuxOptsSetw window-status-current-fg mode-mouse synchronize-panes
74 syn keyword tmuxOptsSetw window-status-format window-status-current-format
75 syn keyword tmuxOptsSetw word-separators
76
77 syn keyword tmuxTodo FIXME NOTE TODO XXX contained
78
79 syn match tmuxKey               /\(C-\|M-\|\^\)\p/      display
80 syn match tmuxNumber            /\d\+/                  display
81 syn match tmuxOptions           /\s-\a\+/               display
82 syn match tmuxVariable          /\w\+=/                 display
83 syn match tmuxVariableExpansion /\${\=\w\+}\=/          display
84
85 syn region tmuxComment  start=/#/ end=/$/ contains=tmuxTodo display oneline
86 syn region tmuxString   start=/"/ end=/"/ display oneline
87 syn region tmuxString   start=/'/ end=/'/ display oneline
88
89 hi def link tmuxAction                  Boolean
90 hi def link tmuxBoolean                 Boolean
91 hi def link tmuxCmds                    Keyword
92 hi def link tmuxComment                 Comment
93 hi def link tmuxKey                     Special
94 hi def link tmuxNumber                  Number
95 hi def link tmuxOptions                 Identifier
96 hi def link tmuxOptsSet                 Function
97 hi def link tmuxOptsSetw                Function
98 hi def link tmuxString                  String
99 hi def link tmuxTodo                    Todo
100 hi def link tmuxVariable                Constant
101 hi def link tmuxVariableExpansion       Constant
102
103 let b:current_syntax = "tmux"