2008-12-20 09:09:57 +00:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: tmux(1) configuration file
|
|
|
|
" Maintainer: Tiago Cunha <me@tiagocunha.org>
|
2010-02-05 02:09:27 +00:00
|
|
|
" Last Change: $Date: 2010-02-05 02:09:27 $
|
2009-10-25 22:16:55 +00:00
|
|
|
" License: This file is placed in the public domain.
|
2008-12-20 09:09:57 +00:00
|
|
|
|
|
|
|
if version < 600
|
|
|
|
syntax clear
|
|
|
|
elseif exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
setlocal iskeyword+=-
|
|
|
|
syntax case match
|
|
|
|
|
|
|
|
syn keyword tmuxAction any current none
|
|
|
|
syn keyword tmuxBoolean off on
|
|
|
|
|
2009-01-12 21:53:18 +00:00
|
|
|
syn keyword tmuxCmds detach[-client] ls list-sessions neww new-window
|
2009-07-02 13:50:27 +00:00
|
|
|
syn keyword tmuxCmds bind[-key] unbind[-key] prev[ious-window] last[-window]
|
|
|
|
syn keyword tmuxCmds lsk list-keys set[-option] renamew rename-window selectw
|
|
|
|
syn keyword tmuxCmds select-window lsw list-windows attach[-session]
|
|
|
|
syn keyword tmuxCmds send-prefix refresh[-client] killw kill-window lsc
|
|
|
|
syn keyword tmuxCmds list-clients linkw link-window unlinkw unlink-window
|
|
|
|
syn keyword tmuxCmds next[-window] send[-keys] swapw swap-window
|
2009-01-12 21:53:18 +00:00
|
|
|
syn keyword tmuxCmds rename[-session] kill-session switchc switch-client
|
2009-10-06 14:14:40 +00:00
|
|
|
syn keyword tmuxCmds has[-session] copy-mode pasteb paste-buffer
|
2009-01-12 21:53:18 +00:00
|
|
|
syn keyword tmuxCmds new[-session] start[-server] kill-server setw
|
|
|
|
syn keyword tmuxCmds set-window-option show[-options] showw show-window-options
|
|
|
|
syn keyword tmuxCmds command-prompt setb set-buffer showb show-buffer lsb
|
|
|
|
syn keyword tmuxCmds list-buffers deleteb delete-buffer lscm list-commands
|
|
|
|
syn keyword tmuxCmds movew move-window select-prompt respawnw respawn-window
|
|
|
|
syn keyword tmuxCmds source[-file] info server-info clock-mode lock[-server]
|
2009-09-23 15:01:10 +00:00
|
|
|
syn keyword tmuxCmds saveb save-buffer downp down-pane killp
|
2009-07-02 13:50:27 +00:00
|
|
|
syn keyword tmuxCmds kill-pane resizep resize-pane selectp select-pane swapp
|
|
|
|
syn keyword tmuxCmds swap-pane splitw split-window upp up-pane choose-session
|
|
|
|
syn keyword tmuxCmds choose-window loadb load-buffer copyb copy-buffer suspendc
|
|
|
|
syn keyword tmuxCmds suspend-client findw find-window breakp break-pane nextl
|
|
|
|
syn keyword tmuxCmds next-layout rotatew rotate-window confirm[-before]
|
2009-07-13 18:29:28 +00:00
|
|
|
syn keyword tmuxCmds clearhist clear-history selectl select-layout if[-shell]
|
2009-11-19 22:28:59 +00:00
|
|
|
syn keyword tmuxCmds display[-message] setenv set-environment showenv
|
|
|
|
syn keyword tmuxCmds show-environment choose-client displayp display-panes
|
|
|
|
syn keyword tmuxCmds run[-shell] lockc lock-client locks lock-session lsp
|
2009-12-02 15:11:20 +00:00
|
|
|
syn keyword tmuxCmds list-panes pipep pipe-pane showmsgs show-messages capturep
|
2010-01-08 16:34:49 +00:00
|
|
|
syn keyword tmuxCmds capture-pane joinp join-pane
|
2008-12-20 09:09:57 +00:00
|
|
|
|
2009-01-12 21:53:18 +00:00
|
|
|
syn keyword tmuxOptsSet prefix status status-fg status-bg bell-action
|
|
|
|
syn keyword tmuxOptsSet default-command history-limit status-left status-right
|
|
|
|
syn keyword tmuxOptsSet status-interval set-titles display-time buffer-limit
|
|
|
|
syn keyword tmuxOptsSet status-left-length status-right-length message-fg
|
2009-01-16 22:53:57 +00:00
|
|
|
syn keyword tmuxOptsSet message-bg lock-after-time default-path repeat-time
|
2009-07-02 13:50:27 +00:00
|
|
|
syn keyword tmuxOptsSet message-attr status-attr status-keys set-remain-on-exit
|
2009-07-20 17:06:13 +00:00
|
|
|
syn keyword tmuxOptsSet status-utf8 default-terminal visual-activity
|
|
|
|
syn keyword tmuxOptsSet visual-bell visual-content status-justify
|
2009-08-09 17:41:46 +00:00
|
|
|
syn keyword tmuxOptsSet terminal-overrides status-left-attr status-left-bg
|
|
|
|
syn keyword tmuxOptsSet status-left-fg status-right-attr status-right-bg
|
2009-08-16 19:18:10 +00:00
|
|
|
syn keyword tmuxOptsSet status-right-fg update-environment base-index
|
2009-09-02 01:06:30 +00:00
|
|
|
syn keyword tmuxOptsSet display-panes-colour display-panes-time default-shell
|
2009-10-11 23:31:02 +00:00
|
|
|
syn keyword tmuxOptsSet set-titles-string lock-command lock-server
|
2009-12-16 01:11:09 +00:00
|
|
|
syn keyword tmuxOptsSet mouse-select-pane message-limit quiet escape-time
|
2010-01-05 23:54:00 +00:00
|
|
|
syn keyword tmuxOptsSet pane-active-border-bg pane-active-border-fg
|
|
|
|
syn keyword tmuxOptsSet pane-border-bg pane-border-fg
|
2010-02-05 02:09:27 +00:00
|
|
|
syn keyword tmuxOptsSet display-panes-active-colour
|
2008-12-20 09:09:57 +00:00
|
|
|
|
2009-01-12 21:53:18 +00:00
|
|
|
syn keyword tmuxOptsSetw monitor-activity aggressive-resize force-width
|
|
|
|
syn keyword tmuxOptsSetw force-height remain-on-exit uft8 mode-fg mode-bg
|
|
|
|
syn keyword tmuxOptsSetw mode-keys clock-mode-colour clock-mode-style
|
2009-02-06 18:38:30 +00:00
|
|
|
syn keyword tmuxOptsSetw xterm-keys mode-attr window-status-attr
|
2009-02-08 01:54:23 +00:00
|
|
|
syn keyword tmuxOptsSetw window-status-bg window-status-fg automatic-rename
|
2009-07-02 13:50:27 +00:00
|
|
|
syn keyword tmuxOptsSetw main-pane-width main-pane-height monitor-content
|
2009-07-20 17:06:13 +00:00
|
|
|
syn keyword tmuxOptsSetw window-status-current-attr window-status-current-bg
|
2009-10-09 13:07:29 +00:00
|
|
|
syn keyword tmuxOptsSetw window-status-current-fg mode-mouse synchronize-panes
|
2009-11-19 22:35:51 +00:00
|
|
|
syn keyword tmuxOptsSetw window-status-format window-status-current-format
|
2008-12-20 09:09:57 +00:00
|
|
|
|
|
|
|
syn keyword tmuxTodo FIXME NOTE TODO XXX contained
|
|
|
|
|
|
|
|
syn match tmuxKey /\(C-\|M-\|\^\)\p/ display
|
|
|
|
syn match tmuxNumber /\d\+/ display
|
2010-02-03 00:21:48 +00:00
|
|
|
syn match tmuxOptions /\s-\a\+/ display
|
2008-12-20 09:09:57 +00:00
|
|
|
syn match tmuxVariable /\w\+=/ display
|
|
|
|
syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
|
|
|
|
|
|
|
|
syn region tmuxComment start=/#/ end=/$/ contains=tmuxTodo display oneline
|
|
|
|
syn region tmuxString start=/"/ end=/"/ display oneline
|
|
|
|
syn region tmuxString start=/'/ end=/'/ display oneline
|
|
|
|
|
|
|
|
hi def link tmuxAction Boolean
|
|
|
|
hi def link tmuxBoolean Boolean
|
|
|
|
hi def link tmuxCmds Keyword
|
|
|
|
hi def link tmuxComment Comment
|
|
|
|
hi def link tmuxKey Special
|
|
|
|
hi def link tmuxNumber Number
|
|
|
|
hi def link tmuxOptions Identifier
|
2009-01-12 21:53:18 +00:00
|
|
|
hi def link tmuxOptsSet Function
|
|
|
|
hi def link tmuxOptsSetw Function
|
2008-12-20 09:09:57 +00:00
|
|
|
hi def link tmuxString String
|
|
|
|
hi def link tmuxTodo Todo
|
|
|
|
hi def link tmuxVariable Constant
|
|
|
|
hi def link tmuxVariableExpansion Constant
|
|
|
|
|
|
|
|
let b:current_syntax = "tmux"
|