Break out of whitelist loop; reword install docs

This commit is contained in:
Reed Esau
2014-11-12 14:35:27 -07:00
parent 6357ed94dc
commit 9ec2c3cbea
2 changed files with 7 additions and 6 deletions

View File

@@ -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 %

View File

@@ -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