X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/4a9e14b0b2f3b4c23d9d4fabad2ae46ce6c6c4a5..d5c4a1fd1996e4ca0df22f323077423924cf0252:/vimrc diff --git a/vimrc b/vimrc index cbfdad2..3e5c937 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 " @@ -202,12 +213,17 @@ Plug 'leafOfTree/vim-svelte-plugin' Plug 'bumaociyuan/vim-swift' Plug 'udalov/kotlin-vim' Plug 'tikhomirov/vim-glsl' +Plug 'jparise/vim-graphql' " Editing 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' @@ -223,7 +239,5 @@ Plug 'tpope/vim-fugitive' Plug 'milkypostman/vim-togglelist' Plug 'jremmen/vim-ripgrep' -Plug 'jparise/vim-graphql' - " List ends here. Plugins become visible to Vim after this call. call plug#end()