mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-11 19:33:48 -05:00
Expand word definitions to fix #12
This commit is contained in:
@@ -200,9 +200,12 @@ fun! pencil#init(...) abort
|
||||
" definition of a word (via iskeyword) we'll impose a prose-
|
||||
" oriented definition.
|
||||
" 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
|
||||
aug pencil_iskeyword
|
||||
au BufEnter <buffer> setl isk& | setl isk-=_
|
||||
au BufEnter <buffer> setl isk& | setl isk-=_ | setl isk+=$,%,&,#,-,'
|
||||
aug END
|
||||
el
|
||||
sil! au! pencil_iskeyword * <buffer>
|
||||
|
||||
Reference in New Issue
Block a user