]> git.immae.eu Git - perso/Immae/Config/dotdrop.git/blobdiff - dotfiles/tools/vimrc
Add autoformat for vim
[perso/Immae/Config/dotdrop.git] / dotfiles / tools / vimrc
index 68a52f7609626011bd5cd13df9d2c726e206615b..fcd9f17fb7e3f461d905ca705399c3b283402a74 100644 (file)
@@ -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 <Esc>`>a<CR><Esc>mb`<i<CR><Esc>ma:'a,'b-1 call
 command -range=% Pinflate normal <Esc>`>a<CR><Esc>mb`<i<CR><Esc>ma:'a,'b-1 call PRangeFunc('python -c "import zlib; import sys; sys.stdout.buffer.write(zlib.compress(sys.stdin.buffer.read()))"', '')<CR>
 command! -range=% Pastebin execute <line1> . "," . <line2> . "w !curl -F 'c=@-' https://ptpb.pw"
 
+noremap <F3> :Autoformat<CR>
 vmap <F8> :Pxml<CR>
 vmap <F9> :Pjson<CR>