Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Add some missing tmux commands, options and window options #1

Merged
merged 5 commits into from over 1 year ago

2 participants

Pablo Olmos de Aguilera Corradini Zaiste!
Pablo Olmos de Aguilera Corradini

I've found that some options and commands weren't being colored, so
I decided to add them to the syntax file. It's the first time that I
edit a Vim syntax file so I hope everything it's okay.

Zaiste! zaiste merged commit 5d9a30a into from October 23, 2012
Zaiste! zaiste closed this October 23, 2012
Zaiste!
Owner

Cool !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 25 additions and 18 deletions. Show diff stats Hide diff stats

  1. 43  syntax/tmux.vim
43  syntax/tmux.vim
... ...
@@ -1,7 +1,7 @@
1 1
 " Vim syntax file
2 2
 " Language: tmux(1) configuration file
3 3
 " Maintainer: Tiago Cunha <me@tiagocunha.org>
4  
-" Last Change: $Date: 2010-07-27 18:29:07 $
  4
+" Last Change: $Date: 2012-10-23 12:23:55 $
5 5
 " License: This file is placed in the public domain.
6 6
 
7 7
 if version < 600
@@ -43,6 +43,9 @@ syn keyword tmuxCmds show-environment choose-client displayp display-panes
43 43
 syn keyword tmuxCmds run[-shell] lockc lock-client locks lock-session lsp
44 44
 syn keyword tmuxCmds list-panes pipep pipe-pane showmsgs show-messages capturep
45 45
 syn keyword tmuxCmds capture-pane joinp join-pane choose-buffer
  46
+syn keyword tmuxCmds even-horizontal even-vertical main-horizontal main-vertical
  47
+syn keyword tmuxCmds tiled choose-list lastp last-pane movep move-pane
  48
+syn keyword tmuxCmds prevl previous-layout prev[-window] respawnp respawn-pane
46 49
 
47 50
 syn keyword tmuxOptsSet prefix prefix2 status status-fg status-bg bell-action
48 51
 syn keyword tmuxOptsSet default-command history-limit status-left status-right
@@ -64,6 +67,8 @@ syn keyword tmuxOptsSet display-panes-active-colour alternate-screen
64 67
 syn keyword tmuxOptsSet detach-on-destroy word-separators
65 68
 syn keyword tmuxOptsSet destroy-unattached exit-unattached set-clipboard
66 69
 syn keyword tmuxOptsSet bell-on-alert mouse-select-window mouse-utf8
  70
+syn keyword tmuxOptsSet mouse-resize-pane
  71
+syn keyword tmuxOptsSet message-[command-]fg renumber-windows visual-silence
67 72
 
68 73
 syn keyword tmuxOptsSetw monitor-activity aggressive-resize force-width
69 74
 syn keyword tmuxOptsSetw force-height remain-on-exit uft8 mode-fg mode-bg
@@ -81,31 +86,33 @@ syn keyword tmuxOptsSetw window-status-bell-bg window-status-bell-fg
81 86
 syn keyword tmuxOptsSetw window-status-content-attr
82 87
 syn keyword tmuxOptsSetw window-status-content-bg window-status-content-fg
83 88
 syn keyword tmuxOptsSetw pane-base-index other-pane-height other-pane-width
  89
+syn keyword tmuxOptsSetw allow-rename c0-change-interval c0-change-trigger
  90
+syn keyword tmuxOptsSetw layout-history-limit monitor-silence utf8 wrap-search
84 91
 
85 92
 syn keyword tmuxTodo FIXME NOTE TODO XXX contained
86 93
 
87  
-syn match tmuxKey       /\(C-\|M-\|\^\)\+\S\+/  display
88  
-syn match tmuxNumber        /\d\+/          display
89  
-syn match tmuxOptions       /\s-\a\+/       display
90  
-syn match tmuxVariable      /\w\+=/         display
91  
-syn match tmuxVariableExpansion /\${\=\w\+}\=/      display
  94
+syn match tmuxKey               /\(C-\|M-\|\^\)\+\S\+/  display
  95
+syn match tmuxNumber            /\d\+/                  display
  96
+syn match tmuxOptions           /\s-\a\+/               display
  97
+syn match tmuxVariable          /\w\+=/                 display
  98
+syn match tmuxVariableExpansion /\${\=\w\+}\=/          display
92 99
 
93 100
 syn region tmuxComment  start=/#/ end=/$/ contains=tmuxTodo display oneline
94 101
 syn region tmuxString   start=/"/ end=/"/ display oneline
95 102
 syn region tmuxString   start=/'/ end=/'/ display oneline
96 103
 
97  
-hi def link tmuxAction          Boolean
98  
-hi def link tmuxBoolean         Boolean
99  
-hi def link tmuxCmds            Keyword
100  
-hi def link tmuxComment         Comment
101  
-hi def link tmuxKey         Special
102  
-hi def link tmuxNumber          Number
103  
-hi def link tmuxOptions         Identifier
104  
-hi def link tmuxOptsSet         Function
105  
-hi def link tmuxOptsSetw        Function
106  
-hi def link tmuxString          String
107  
-hi def link tmuxTodo            Todo
108  
-hi def link tmuxVariable        Constant
  104
+hi def link tmuxAction              Boolean
  105
+hi def link tmuxBoolean             Boolean
  106
+hi def link tmuxCmds                Keyword
  107
+hi def link tmuxComment             Comment
  108
+hi def link tmuxKey                 Special
  109
+hi def link tmuxNumber              Number
  110
+hi def link tmuxOptions             Identifier
  111
+hi def link tmuxOptsSet             Function
  112
+hi def link tmuxOptsSetw            Function
  113
+hi def link tmuxString              String
  114
+hi def link tmuxTodo                Todo
  115
+hi def link tmuxVariable            Constant
109 116
 hi def link tmuxVariableExpansion   Constant
110 117
 
111 118
 let b:current_syntax = "tmux"
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.