mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-12 03:43:46 -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-
|
" 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user