]> git.immae.eu Git - perso/Immae/Config/dotdrop.git/commitdiff
Add autoformat for vim master
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 28 Oct 2018 10:44:21 +0000 (11:44 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 28 Oct 2018 10:44:21 +0000 (11:44 +0100)
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 'tpope/vim-fugitive'
 Plug 'tomlion/vim-solidity'
 Plug 'chrisbra/SudoEdit.vim'
+Plug 'Chiel92/vim-autoformat'
 
 call plug#end()
 
 
 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"
 
 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>
 
 vmap <F8> :Pxml<CR>
 vmap <F9> :Pjson<CR>