mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00:00
Add vim mode.
This commit is contained in:
parent
da6e334eb4
commit
db39fd8503
6
CHANGES
6
CHANGES
@ -1,3 +1,7 @@
|
|||||||
|
20 December 2008
|
||||||
|
|
||||||
|
* Add vim mode for tmux configuration file to examples/, from Tiago Cunha.
|
||||||
|
|
||||||
15 December 2008
|
15 December 2008
|
||||||
|
|
||||||
* New command, source-file (alias source), to load a configuration
|
* New command, source-file (alias source), to load a configuration
|
||||||
@ -784,7 +788,7 @@
|
|||||||
(including mutt, emacs). No status bar yet and no key remapping or other
|
(including mutt, emacs). No status bar yet and no key remapping or other
|
||||||
customisation.
|
customisation.
|
||||||
|
|
||||||
$Id: CHANGES,v 1.174 2008-12-15 21:21:56 nicm Exp $
|
$Id: CHANGES,v 1.175 2008-12-20 09:09:57 nicm Exp $
|
||||||
|
|
||||||
LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr
|
LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr
|
||||||
LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB
|
LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB
|
||||||
|
68
examples/tmux.vim
Normal file
68
examples/tmux.vim
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
" Vim syntax file
|
||||||
|
" Language: tmux(1) configuration file
|
||||||
|
" Maintainer: Tiago Cunha <me@tiagocunha.org>
|
||||||
|
" Last Change: $Date: 2008-12-20 09:09:57 $
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
syn keyword tmuxCmds attach[-session] bind[-key] command-prompt copy-mode
|
||||||
|
syn keyword tmuxCmds delete-buffer deleteb detach[-client] has[-session]
|
||||||
|
syn keyword tmuxCmds kill-server kill-session kill-window killw last[-window]
|
||||||
|
syn keyword tmuxCmds link-window linkw list-buffers lsb list-commands lscm
|
||||||
|
syn keyword tmuxCmds list-keys lsk list-sessions ls list-windows lsw
|
||||||
|
syn keyword tmuxCmds move-window movew new[-session] new-window neww
|
||||||
|
syn keyword tmuxCmds next[-window] paste-buffer pasteb prev[ious-window]
|
||||||
|
syn keyword tmuxCmds refresh[-client] rename[-session] rename-window renamew
|
||||||
|
syn keyword tmuxCmds respawn-window respawnw scroll-mode select-prompt
|
||||||
|
syn keyword tmuxCmds select-window selectw send-keys send-prefix set-buffer
|
||||||
|
syn keyword tmuxCmds setb set[-option] set-window-option setw show-buffer showb
|
||||||
|
syn keyword tmuxCmds show[-options] show-window-options showw source[-file]
|
||||||
|
syn keyword tmuxCmds start-server swap-window swapw switch-client switchc
|
||||||
|
syn keyword tmuxCmds unbind[-key] unlink-window unlinkw
|
||||||
|
|
||||||
|
syn keyword tmuxCmdsSet bell-action buffer-limit default-command display-time
|
||||||
|
syn keyword tmuxCmdsSet history-limit message-bg message-fg prefix
|
||||||
|
syn keyword tmuxCmdsSet remain-by-default set-titles status status-bg status-fg
|
||||||
|
syn keyword tmuxCmdsSet status-interval status-left status-left-length
|
||||||
|
syn keyword tmuxCmdsSet status-right status-right-length utf8-default
|
||||||
|
|
||||||
|
syn keyword tmuxCmdsSetw aggressive-resize force-height force-width mode-bg
|
||||||
|
syn keyword tmuxCmdsSetw mode-fg mode-keys monitor-activity remain-on-exit utf8
|
||||||
|
|
||||||
|
syn keyword tmuxTodo FIXME NOTE TODO XXX contained
|
||||||
|
|
||||||
|
syn match tmuxKey /\(C-\|M-\|\^\)\p/ display
|
||||||
|
syn match tmuxNumber /\d\+/ display
|
||||||
|
syn match tmuxOptions /\s-\a/ display
|
||||||
|
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 tmuxCmdsSet Function
|
||||||
|
hi def link tmuxCmdsSetw Function
|
||||||
|
hi def link tmuxComment Comment
|
||||||
|
hi def link tmuxKey Special
|
||||||
|
hi def link tmuxNumber Number
|
||||||
|
hi def link tmuxOptions Identifier
|
||||||
|
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"
|
Loading…
Reference in New Issue
Block a user