From e264282165789faa219d9c058f3ade92355b4143 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 18 Mar 2015 16:59:48 +0100 Subject: [PATCH] Started syntax highlighting of 'todo' files --- .vim/ftdetect/todo.vim | 1 + .vim/syntax/todo.vim | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 .vim/ftdetect/todo.vim create mode 100644 .vim/syntax/todo.vim diff --git a/.vim/ftdetect/todo.vim b/.vim/ftdetect/todo.vim new file mode 100644 index 0000000..af40649 --- /dev/null +++ b/.vim/ftdetect/todo.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead *.todo set filetype=todo diff --git a/.vim/syntax/todo.vim b/.vim/syntax/todo.vim new file mode 100644 index 0000000..465b1d8 --- /dev/null +++ b/.vim/syntax/todo.vim @@ -0,0 +1,8 @@ +if exists("b:current_syntax") + finish +endif + +syntax keyword todoKeyword todo done +highlight link todoKeyword Keyword + +let b:current_syntax = "todo"