added knownhosts color

This commit is contained in:
gurkenhabicht 2023-11-15 20:58:22 +01:00
parent e86dfd16af
commit a4c73d71ff
2 changed files with 10 additions and 0 deletions

1
vim/.vim/filetype.vim Normal file
View File

@ -0,0 +1 @@
au BufNewFile,BufRead known_hosts setfiletype knownhosts

View File

@ -0,0 +1,9 @@
setlocal iskeyword=@,48-57,_,192-255,#,-
syntax match knownhostspubkey "AAAA[a-zA-Z0-9+/]\+[=]\{0,2}"
highlight def link knownhostspubkey Special
syn keyword sshalg ssh-rsa
hi def link sshalg Identifier
syn match knownhostsip "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\>"
hi def link knownhostsip Constant