From f25ed0bdd00b53a8eaa1f21391d9af06bfa5d368 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 5 Feb 2018 10:27:37 +0100 Subject: [PATCH] More distraction free writing, and better mode for prose --- .vimrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.vimrc b/.vimrc index d5b701d..6fb483e 100644 --- a/.vimrc +++ b/.vimrc @@ -275,10 +275,25 @@ if v:version >= 704 Plugin 'vim-pandoc/vim-pandoc' endif + " Distraction-free writing, start with V (\V or ,V in this config) Plugin 'junegunn/goyo.vim' let g:goyo_width = 120 +" Help focus on text by dimming other parts a bit +Plugin 'junegunn/limelight.vim' +let g:limelight_conceal_ctermfg = 'Grey69' +let g:limelight_conceal_ctermfg = 145 + +" Helps with writing prose (better line breaks, agnostic on soft line wraps vs +" hard line breaks etc) +Plugin 'reedes/vim-pencil' + +" Toggle Gogo with Limelight and Pencil together with Ctrl+F11 +"map :Goyo :Limelight!! :TogglePencil +nmap V :Goyo :Limelight!! :TogglePencil + + " undotree.vim : Display your undo history in a graph. Plugin 'mbbill/undotree' nnoremap u :UndotreeToggle