mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-11 03:13:47 -05:00
Further tweaks to improve init() docs
This commit is contained in:
@@ -83,6 +83,8 @@ tutorials available._
|
|||||||
|
|
||||||
### Basic configuration
|
### Basic configuration
|
||||||
|
|
||||||
|
Add to your `.vimrc`:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype plugin on " may already be in your .vimrc
|
filetype plugin on " may already be in your .vimrc
|
||||||
@@ -319,8 +321,7 @@ Configurable options for `pencil#init()` include: `autoformat`,
|
|||||||
`concealcursor`, `conceallevel`, `cursorwrap`, `joinspaces`, `textwidth`,
|
`concealcursor`, `conceallevel`, `cursorwrap`, `joinspaces`, `textwidth`,
|
||||||
and `wrap`. These are detailed above.
|
and `wrap`. These are detailed above.
|
||||||
|
|
||||||
Comprehensive initialization is possible without having to populate
|
You can override _pencil_ and other configuration settings when initializing:
|
||||||
`after/ftplugin` modules:
|
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
augroup pencil
|
augroup pencil
|
||||||
@@ -342,8 +343,8 @@ augroup pencil
|
|||||||
augroup END
|
augroup END
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatives to initialize include `after/ftplugin` modules as well as
|
Alternatives include `after/ftplugin` modules as well as refactoring initialization
|
||||||
refactoring statements into a function.
|
statements into a function.
|
||||||
|
|
||||||
## Auto-detecting wrap mode
|
## Auto-detecting wrap mode
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user