Created
November 10, 2014 18:10
-
-
Save sldenazis/cdcd0cb8fdad2ca619e2 to your computer and use it in GitHub Desktop.
Vim syntax highlighting para telnet de bajo presupuesto
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
" Filename: telnet.vim | |
" Language: Telnet command syntax | |
" Maintainer: sldenazis <[email protected]> | |
" Revision: 0.1 | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") | |
finish | |
endif | |
" Numeros en general | |
syn match telnetNumber /\d\+/ | |
syn match telnetIp /\d\+\.\d\+\.\d\+\.\d\+/ | |
" Conectando | |
syn match telnetTrying /Trying .*/ | |
" Connected | |
syn match telnetConnected /\(Connected to .*\|Connection closed.*\)/ | |
" Message | |
syn match telnetMessage /Escape character is .*/ | |
" Prompt | |
syn match telnetPrompt /telnet>/ | |
" Error | |
syn match telnetError /\(Invalid comm.*\|\^]\)/ | |
" Commands | |
syn match telnetCommand /\(^\| \)\(close\|logout\|display\|mode\|open\|quit\|send\|set\|unset\|status\|toggle\|slc\|z\|!\|environ\|?\|help\)/ | |
hi link telnetNumber Number | |
hi link telnetIP telnetNumber | |
hi link telnetTrying Identifier | |
hi link telnetConnected Type | |
hi link telnetMessage Label | |
hi link telnetPrompt Function | |
hi link telnetCommand SpecialChar | |
hi link telnetError Error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment