preservim / vim-pencil

Rethinking Vim as a tool for writing
Other
1.58k stars 39 forks source link

g:pencil#textwidth setting not applied #85

Open sdothum opened 4 years ago

sdothum commented 4 years ago

Dist: Voidlinux Vim 8.1, Included patches: 1-2402

Setting g:pencil#textwidth followed by autocmd for pencil#init() does not apply the expected textwidth. (Using Hardpencil).

Workaround done is

autocmd FileType <ft> call pencil#init() | setlocal textwidth=<width>

Setting textwidth in pencil#init() call does not work either.