From b19c0831d18793fb8b1640f0682ea50bece11808 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Sun, 1 Mar 2020 23:57:33 +0100 Subject: [PATCH] goyo + limelight --- vim/init.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/init.vim b/vim/init.vim index efc02d6..a8bf370 100644 --- a/vim/init.vim +++ b/vim/init.vim @@ -47,6 +47,7 @@ map p :set paste! map g :Gstatus map gc :Gcommit map gp :Gpush +map f :Goyo filetype plugin indent on @@ -61,6 +62,8 @@ Plug 'itchyny/lightline.vim' Plug 'airblade/vim-gitgutter' Plug 'hashivim/vim-terraform' Plug 'bitc/vim-bad-whitespace' +Plug 'junegunn/goyo.vim' +Plug 'junegunn/limelight.vim' call plug#end() syntax on @@ -72,7 +75,7 @@ if has("gui") set guioptions-=e set guioptions-=r set guioptions-=L - set guifont=Hack\ NF:h13 + set guifont=Hack\ NF:h14 endif command! -bang -nargs=? -complete=dir Files @@ -95,3 +98,6 @@ let g:lightline = { function! LightLineReadonly() return &readonly && &filetype !=# 'help' ? 'RO' : '' endfunction + +autocmd! User GoyoEnter Limelight +autocmd! User GoyoLeave Limelight!