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