This commit is contained in:
Reed Esau
2016-06-11 15:13:24 -06:00
parent 01a3a95c72
commit f9cbfca887
2 changed files with 6 additions and 4 deletions

View File

@@ -66,11 +66,13 @@ tool in expressing yourself. For more details on vi-style editing, see...
* [Your problem with Vim is that you don't grok vi][gv] (December 2011)
* [Intro to Vim's Grammar][ig] (January 2013)
* [Why Atom Cant Replace Vim, Learning the lesson of vi][wa] (March 2014)
* [Language of Vim/Neovim][lovn] (January 2015)
[ls]: http://yanpritzker.com/2011/12/16/learn-to-speak-vim-verbs-nouns-and-modifiers/
[gv]: http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
[ig]: http://takac.github.io/2013/01/30/vim-grammar/
[wa]: https://medium.com/p/433852f4b4d1
[lovn]: http://allsyed.com/language-of-vim-neovim/
# Installation
@@ -552,7 +554,7 @@ Bloggers and developers discuss _pencil_ and its brethern:
* [Quick tops for writing prose with Vim][qtfwp] (2014) - by @benoliver999
* [UseVim: Reed Esau's Writing Plugins][rewp] (2015) - by @alexyoung
* [Tomasino Labs: Vim in Context][vic] (2015) - by @jamestomasino
* [Writing with Vim][wwv] (2015) - by Pat Ambrosio
* [Writing with Vim][wwv] (2015) - by Pat Ambrosio
Other plugins of specific interest to writers:

View File

@@ -425,9 +425,9 @@ fun! pencil#init(...) abort
" map <cr> only if not already mapped
if empty(maparg('<cr>', 'n'))
ino <buffer> <cr> <c-g>u<cr>
let b:pencil#cr_mapped = 1
let b:pencil_cr_mapped = 1
el
let b:pencil#cr_mapped = 0
let b:pencil_cr_mapped = 0
en
el
sil! iu <buffer> .
@@ -440,7 +440,7 @@ fun! pencil#init(...) abort
sil! iu <buffer> <c-w>
" unmap <cr> only if we mapped it ourselves
if exists('b:pencil#cr_mapped') && b:pencil#cr_mapped
if exists('b:pencil_cr_mapped') && b:pencil_cr_mapped
sil! iu <buffer> <cr>
en
en