-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow disabling of color highlighting
- Loading branch information
Showing
3 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
" Language: tmux(1) configuration file | ||
" Version: 3.1b (git-769ae106) | ||
" Version: 3.2-rc (git-e94bd5cc) | ||
" URL: https://github.com/ericpruitt/tmux.vim/ | ||
" Maintainer: Eric Pruitt <[email protected]> | ||
" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause) | ||
|
@@ -55,13 +55,16 @@ hi def link tmuxTodo Todo | |
hi def link tmuxVariable Identifier | ||
hi def link tmuxVariableExpansion Identifier | ||
|
||
" Make the foreground of colourXXX keywords match the color they represent. | ||
" Make the foreground of colourXXX keywords match the color they represent | ||
" when g:tmux_syntax_colors is unset or set to a non-zero value. | ||
" Darker colors have their background set to white. | ||
for s:i in range(0, 255) | ||
let s:bg = (!s:i || s:i == 16 || (s:i > 231 && s:i < 235)) ? 15 : "none" | ||
exec "syn match tmuxColour" . s:i . " /\\<colour" . s:i . "\\>/ display" | ||
\ " | highlight tmuxColour" . s:i . " ctermfg=" . s:i . " ctermbg=" . s:bg | ||
endfor | ||
if get(g:, "tmux_syntax_colors", 1) | ||
for s:i in range(0, 255) | ||
let s:bg = (!s:i || s:i == 16 || (s:i > 231 && s:i < 235)) ? 15 : "none" | ||
exec "syn match tmuxColour" . s:i . " /\\<colour" . s:i . "\\>/ display" | ||
\ " | highlight tmuxColour" . s:i . " ctermfg=" . s:i . " ctermbg=" . s:bg | ||
endfor | ||
endif | ||
|
||
syn keyword tmuxOptions | ||
\ backspace buffer-limit command-alias copy-command default-terminal editor | ||
|