mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-12 11:53:47 -05:00
Break out of whitelist loop; reword install docs
This commit is contained in:
@@ -84,13 +84,13 @@ tutorials available._
|
|||||||
|
|
||||||
## Vundle
|
## Vundle
|
||||||
|
|
||||||
Add to your `.vimrc`:
|
Add to your `.vimrc` and save:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
Plugin 'reedes/vim-pencil'
|
Plugin 'reedes/vim-pencil'
|
||||||
```
|
```
|
||||||
|
|
||||||
…save and then run the following in Vim:
|
…then run the following in Vim:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
:source %
|
:source %
|
||||||
@@ -101,13 +101,13 @@ For Vundle version < 0.10.2, replace `Plugin` with `Bundle` above.
|
|||||||
|
|
||||||
## vim-plug
|
## vim-plug
|
||||||
|
|
||||||
Add to your `.vimrc`:
|
Add to your `.vimrc` and save:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
Plug 'reedes/vim-pencil'
|
Plug 'reedes/vim-pencil'
|
||||||
```
|
```
|
||||||
|
|
||||||
…save and then run the following in Vim:
|
…then run the following in Vim:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
:source %
|
:source %
|
||||||
@@ -116,13 +116,13 @@ Plug 'reedes/vim-pencil'
|
|||||||
|
|
||||||
## NeoBundle
|
## NeoBundle
|
||||||
|
|
||||||
Add to your `.vimrc`:
|
Add to your `.vimrc` and save:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
NeoBundle 'reedes/vim-pencil'
|
NeoBundle 'reedes/vim-pencil'
|
||||||
```
|
```
|
||||||
|
|
||||||
…save and then run the following in Vim:
|
…then run the following in Vim:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
:source %
|
:source %
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ fun! s:maybe_enable_autoformat()
|
|||||||
if match(synIDattr(l:sid, 'name'),
|
if match(synIDattr(l:sid, 'name'),
|
||||||
\ g:pencil#autoformat_inline_whitelist_re) >= 0
|
\ g:pencil#autoformat_inline_whitelist_re) >= 0
|
||||||
let l:okay_to_enable = 1
|
let l:okay_to_enable = 1
|
||||||
|
break
|
||||||
en
|
en
|
||||||
endfo
|
endfo
|
||||||
en
|
en
|
||||||
|
|||||||
Reference in New Issue
Block a user