diff --git a/vim/.vim/filetype.vim b/vim/.vim/filetype.vim new file mode 100644 index 0000000..1fbc41b --- /dev/null +++ b/vim/.vim/filetype.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead known_hosts setfiletype knownhosts diff --git a/vim/.vim/syntax/knownhosts.vim b/vim/.vim/syntax/knownhosts.vim new file mode 100644 index 0000000..2bb031a --- /dev/null +++ b/vim/.vim/syntax/knownhosts.vim @@ -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