Ensure iskeyword is prose-oriented for buffer - fixes #15

This commit is contained in:
Reed Esau
2014-09-03 05:23:36 -06:00
parent 1634224b35
commit eec3dc455e

View File

@@ -196,6 +196,18 @@ fun! pencil#init(...) abort
sil! au! pencil_cursorwrap * <buffer>
en
" Because syntax for fenced code blocks will mess with the
" definition of a word (via iskeyword) we'll impose a prose-
" oriented definition.
" e.g., let g:markdown_fenced_languages = ['sh',] " adds '.'
if b:pencil_wrap_mode
aug pencil_iskeyword
au BufEnter <buffer> setl isk& | setl isk-=_
aug END
el
sil! au! pencil_iskeyword * <buffer>
en
" window/buffer settings
if b:pencil_wrap_mode
setl nolist