Expand word definitions to fix #12

This commit is contained in:
Reed Esau
2014-09-03 05:56:44 -06:00
parent eec3dc455e
commit 66ddded258

View File

@@ -200,9 +200,12 @@ fun! pencil#init(...) abort
" definition of a word (via iskeyword) we'll impose a prose- " definition of a word (via iskeyword) we'll impose a prose-
" oriented definition. " oriented definition.
" e.g., let g:markdown_fenced_languages = ['sh',] " adds '.' " e.g., let g:markdown_fenced_languages = ['sh',] " adds '.'
"
" Support $20 30% D&D #40 highest-rated O'Toole Mary's
" TODO how to separate quote from apostrophe use?
if b:pencil_wrap_mode if b:pencil_wrap_mode
aug pencil_iskeyword aug pencil_iskeyword
au BufEnter <buffer> setl isk& | setl isk-=_ au BufEnter <buffer> setl isk& | setl isk-=_ | setl isk+=$,%,&,#,-,'
aug END aug END
el el
sil! au! pencil_iskeyword * <buffer> sil! au! pencil_iskeyword * <buffer>