From: Ismaƫl Bouya Date: Sun, 28 Oct 2018 10:44:21 +0000 (+0100) Subject: Add autoformat for vim X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2Fdotdrop.git;a=commitdiff_plain Add autoformat for vim --- 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