summaryrefslogtreecommitdiff
path: root/dotfiles/tools/vimrc
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-10-28 11:44:21 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-10-28 11:44:21 +0100
commita55f7a20ade3a4871f51364a3e324e8ad9d39b44 (patch)
tree70a95495ced3e959b34d4ba92048802712ad6f82 /dotfiles/tools/vimrc
parentbd80f37aab3a6491c241afa4cc3ed390103e0cf3 (diff)
downloaddotdrop-a55f7a20ade3a4871f51364a3e324e8ad9d39b44.tar.gz
dotdrop-a55f7a20ade3a4871f51364a3e324e8ad9d39b44.tar.zst
dotdrop-a55f7a20ade3a4871f51364a3e324e8ad9d39b44.zip
Add autoformat for vimHEADmaster
Diffstat (limited to 'dotfiles/tools/vimrc')
-rw-r--r--dotfiles/tools/vimrc2
1 files changed, 2 insertions, 0 deletions
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'
32Plug 'tpope/vim-fugitive' 32Plug 'tpope/vim-fugitive'
33Plug 'tomlion/vim-solidity' 33Plug 'tomlion/vim-solidity'
34Plug 'chrisbra/SudoEdit.vim' 34Plug 'chrisbra/SudoEdit.vim'
35Plug 'Chiel92/vim-autoformat'
35 36
36call plug#end() 37call plug#end()
37 38
@@ -259,6 +260,7 @@ command -range=% Pdeflate normal <Esc>`>a<CR><Esc>mb`<i<CR><Esc>ma:'a,'b-1 call
259command -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> 260command -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>
260command! -range=% Pastebin execute <line1> . "," . <line2> . "w !curl -F 'c=@-' https://ptpb.pw" 261command! -range=% Pastebin execute <line1> . "," . <line2> . "w !curl -F 'c=@-' https://ptpb.pw"
261 262
263noremap <F3> :Autoformat<CR>
262vmap <F8> :Pxml<CR> 264vmap <F8> :Pxml<CR>
263vmap <F9> :Pjson<CR> 265vmap <F9> :Pjson<CR>
264 266