preservim / vim-pencil

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

Figure out way to make global settings only active for pencil mode #3

Closed reedes closed 10 years ago

reedes commented 10 years ago

For example, whichwrap and virtualedit are globally-scoped settings. Setlocal for these doesn't appear to be working as expected.

Investigate how to automatically set/unset these for the buffers in which a pencil mode is active.

Use BufEnter and BufLeave events to set/restore these global settings.

reedes commented 10 years ago

Protected global settings from ve=onemore, the most disruptive of them.

Others can be similarly protected if needed. Closing for now.