mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-16 05:43:47 -05:00
minor rewording and formatting
This commit is contained in:
@@ -143,8 +143,8 @@ git clone https://github.com/reedes/vim-pencil
|
|||||||
|
|
||||||
## Basic initialization
|
## Basic initialization
|
||||||
|
|
||||||
Though optional, initializing _pencil_ by `FileType` will automatically
|
Initializing _pencil_ by `FileType` is optional, though doing so will
|
||||||
set up your buffers for editing prose.
|
automatically set up your buffers for editing prose.
|
||||||
|
|
||||||
Add support for your desired filetypes to your `.vimrc`:
|
Add support for your desired filetypes to your `.vimrc`:
|
||||||
|
|
||||||
@@ -391,20 +391,20 @@ You can override _pencil_ and other configuration settings when initializing:
|
|||||||
```vim
|
```vim
|
||||||
augroup pencil
|
augroup pencil
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType markdown,mkd call pencil#init() |
|
autocmd FileType markdown,mkd call pencil#init()
|
||||||
\ call litecorrect#init() |
|
\ | call litecorrect#init()
|
||||||
\ setl spell spl=en_us fdl=4 noru nonu nornu |
|
\ | setl spell spl=en_us fdl=4 noru nonu nornu
|
||||||
\ setl fdo+=search
|
\ | setl fdo+=search
|
||||||
autocmd Filetype git,gitsendemail,*commit*,*COMMIT* |
|
autocmd Filetype git,gitsendemail,*commit*,*COMMIT*
|
||||||
\ call pencil#init({'wrap': 'hard', 'textwidth': 72}) |
|
\ call pencil#init({'wrap': 'hard', 'textwidth': 72})
|
||||||
\ call litecorrect#init() |
|
\ | call litecorrect#init()
|
||||||
\ setl spell spl=en_us et sw=2 ts=2 noai
|
\ | setl spell spl=en_us et sw=2 ts=2 noai
|
||||||
autocmd Filetype mail call pencil#init({'wrap': 'hard', 'textwidth': 60}) |
|
autocmd Filetype mail call pencil#init({'wrap': 'hard', 'textwidth': 60})
|
||||||
\ call litecorrect#init() |
|
\ | call litecorrect#init()
|
||||||
\ setl spell spl=en_us et sw=2 ts=2 noai nonu nornu
|
\ | setl spell spl=en_us et sw=2 ts=2 noai nonu nornu
|
||||||
autocmd Filetype html,xml call pencil#init({'wrap': 'soft'}) |
|
autocmd Filetype html,xml call pencil#init({'wrap': 'soft'})
|
||||||
\ call litecorrect#init() |
|
\ | call litecorrect#init()
|
||||||
\ setl spell spl=en_us et sw=2 ts=2
|
\ | setl spell spl=en_us et sw=2 ts=2
|
||||||
augroup END
|
augroup END
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user