dhruvasagar / vim-dotoo

Org-mode like task logging & time tracking in Vim
558 stars 27 forks source link

How to get spelling working? #123

Closed Gavinok closed 3 years ago

Gavinok commented 3 years ago

I have used :set spell but it doesn't seem to function the same in dotoo files as it does in other text files. there is not highlighting and it can't be found with [s not sure if I am missing something.

dhruvasagar commented 3 years ago

@Gavinok Should be working now.

Gavinok commented 3 years ago

@dhruvasagar It would be nice to still have spell checking in the bulleted and numbered lists as well.

Gavinok commented 3 years ago

This should do it

diff --git a/syntax/dotoo.vim b/syntax/dotoo.vim
index f0972d6..99c3b49 100644
--- a/syntax/dotoo.vim
+++ b/syntax/dotoo.vim
@@ -262,7 +262,7 @@ hi def link dotoo_list_def PreProc
 "
 " }}}
 " Bullet Lists: {{{
-syntax match dotoo_list_item /.*$/ contained contains=dotoo_subtask_percent,dotoo_subtask_number,dotoo_subtask_percent_100,dotoo_subtask_number_all,dotoo_list_checkbox,dotoo_bold,dotoo_italic,dotoo_underline,dotoo_code,dotoo_verbatim,dotoo_timestamp,dotoo_timestamp_inactive,dotoo_list_def
+syntax match dotoo_list_item /.*$/ contained contains=dotoo_subtask_percent,dotoo_subtask_number,dotoo_subtask_percent_100,dotoo_subtask_number_all,dotoo_list_checkbox,dotoo_bold,dotoo_italic,dotoo_underline,dotoo_code,dotoo_verbatim,dotoo_timestamp,dotoo_timestamp_inactive,dotoo_list_def,@Spell
 syntax match dotoo_list_checkbox /\[[ X-]]/ contained
 hi def link dotoo_list_checkbox     PreProc
dhruvasagar commented 3 years ago

@Gavinok Thanks i'll take a look