From 62bb6d6d403284ba59400b0f98dfff942eb40afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 16 Dec 2022 14:28:32 +0100 Subject: [PATCH] vim: Update writing plugin config --- vim/vimrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index ac58e70..b708bf3 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -196,8 +196,8 @@ else nnoremap u :GundoToggle nnoremap d :diffupdate - nmap :Goyo:TogglePencil:Limelight!! - nmap w :Goyo:TogglePencil:Limelight!! + nmap :Goyo:TogglePencil + nmap w :Goyo:TogglePencil:set colorcolumn= nmap c :%w !xclip -selection clipboard nmap x :r !xclip -out -selection -clipboard @@ -228,6 +228,7 @@ else \ }, \ } + function! LightLineFilename() return fnamemodify(expand('%F'), ":~:h") endfunction @@ -235,15 +236,17 @@ else " == pencil == let g:pencil#textwidth = 80 let g:pencil#autoformat = 1 - let g:pencil#cursorwrap = 1 - let g:pencil#wrapModeDefault = 'soft' - let g:pencil#cursorwrap = 0 + let g:pencil#wrapModeDefault = 'hard' + let g:pencil#map#suspend_af = 'K' " == goyo == let g:goyo_width = 100 let g:goyo_height = "90%" let g:goyo_linenr = 0 + autocmd! User GoyoEnter Limelight + autocmd! User GoyoLeave Limelight! + " == limelight == let g:limelight_default_coefficient = 0.5