

WRITEROOM MODE UPDATE
I managed to decrease the word count overhead quite a bit somehow by copy/pasting a function from somewhere that made it only update it on every line break (at 20k words it's still painful when inserting a line break though). Just replace your ~/.vim/plugged/vim-markdown-folding/after/ftplugin/markdown/folding.vim with this: WRITEROOM EMACS UPDATE Just to add some clarification - the original setup provides a line count that is mostly useless to authors. Plug 'junegunn/goyo.vim' " Full screen writing mode Plug 'junegunn/limelight.vim' " Highlights only active paragraph Plug 'tpope/vim-abolish' " Fancy abbreviation replacements Plug 'reedes/vim-pencil' " Super-powered writing things This reddit post and answer has some interesting starting points to explore: The suggested folding.vim file changes that into a word count and nothing else (at a slight resource expense, most likely - especially if folds grow into 1k+ words). Plug 'reedes/vim-wordy' " Weasel words and passive voiceĪutocmd filetype markdown,mkd call pencil#init() Plug 'reedes/vim-textobj-sentence' " Treat sentences as text objects Plug 'reedes/vim-litecorrect' " Better autocorrections Plug 'reedes/vim-lexical' " Better spellcheck mappings WRITEROOM EMACS FULL
WRITEROOM MODE HOW TO
See how to create custom workspaces to switch from coding to writing prose (added ).\ | setl spell spl=en_us fdl=4 noru nonu nornuĪlso see this reddit thread from about how to use ViM for novel writing. vimrc, but the only ones I couldn't live without for prose are Goyo (distraction-free), vim-peekaboo (show registers while yanking/pasting) and vim-Grammalecte (a french grammar/spelling checker). I've added a live word count to my status bar and a feature I haven't seen elsewhere but which I now find mandatory: something to hide what I'm writing but still provide me with some context. It serves two purposes: to protect my kids or other prying eyes from reading my "rated" stuff, and to help me resist my inner editor (can't correct what I don't see!). I can still read some of it with a little effort if I typed it not too long ago, and see the overall structure so I don't get lost. I also have a shortcut to navigate to the previous or next scene/chapter/book:Įdit: I can't embed an image… so go to to see my "incognito/censored/kill-the-inner-editor" mode It's a single key toggle, so I can quickly hide or reveal the whole window.Īnother "can't live without it" setting is the one to return to last edit position when opening files.

vimrc for the word count: īoth work flawlessly even with a 200'000 words markdown novel (no lag at all) Thanks for your interest! I hope it will be useful to you or to other people.
WRITEROOM MODE GENERATOR
See this great vimrc generator to get a decent starter vimrc.
