From: Ruben Beltran del Rio Date: Mon, 28 Jun 2021 20:06:37 +0000 (+0200) Subject: Add goyo and limelight to vim X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/0d9acf5febc7f45669e735f7d2bc54b65568c4e4 Add goyo and limelight to vim --- diff --git a/vimrc b/vimrc index cbfdad2..d457e33 100755 --- a/vimrc +++ b/vimrc @@ -185,6 +185,17 @@ inoremap :m .-2==gi vnoremap :m '>+1gv=gv vnoremap :m '<-2gv=gv +" Limelight / Goyo config + +autocmd! User GoyoEnter Limelight +autocmd! User GoyoLeave Limelight! +nnoremap :Limelight!!== +inoremap :Limelight!!==gi +vnoremap :Limelight!!gv=gv +nnoremap :Goyo== +inoremap :Goyo==gi +vnoremap :Goyogv=gv + " " Plug Config " @@ -208,6 +219,10 @@ Plug 'tpope/vim-endwise' Plug 'rstacruz/vim-closer' Plug 'michaeljsmith/vim-indent-object' +" Distraction free editing +Plug 'junegunn/goyo.vim' +Plug 'junegunn/limelight.vim' + " Tools Plug 'editorconfig/editorconfig-vim' Plug 'dense-analysis/ale'