X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2Fdotdrop.git;a=blobdiff_plain;f=dotfiles%2Ftools%2Fvimrc;fp=dotfiles%2Ftools%2Fvimrc;h=fcd9f17fb7e3f461d905ca705399c3b283402a74;hp=68a52f7609626011bd5cd13df9d2c726e206615b;hb=a55f7a20ade3a4871f51364a3e324e8ad9d39b44;hpb=bd80f37aab3a6491c241afa4cc3ed390103e0cf3 diff --git a/dotfiles/tools/vimrc b/dotfiles/tools/vimrc index 68a52f7..fcd9f17 100644 --- a/dotfiles/tools/vimrc +++ b/dotfiles/tools/vimrc @@ -32,6 +32,7 @@ Plug 'vim-vdebug/vdebug' Plug 'tpope/vim-fugitive' Plug 'tomlion/vim-solidity' Plug 'chrisbra/SudoEdit.vim' +Plug 'Chiel92/vim-autoformat' call plug#end() @@ -259,6 +260,7 @@ command -range=% Pdeflate normal `>amb`ma:'a,'b-1 call command -range=% Pinflate normal `>amb`ma:'a,'b-1 call PRangeFunc('python -c "import zlib; import sys; sys.stdout.buffer.write(zlib.compress(sys.stdin.buffer.read()))"', '') command! -range=% Pastebin execute . "," . . "w !curl -F 'c=@-' https://ptpb.pw" +noremap :Autoformat vmap :Pxml vmap :Pjson