From a55f7a20ade3a4871f51364a3e324e8ad9d39b44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 28 Oct 2018 11:44:21 +0100 Subject: [PATCH] Add autoformat for vim --- dotfiles/tools/vimrc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.41.0