aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-12-17 22:12:04 +0000
committerCody Hiar <codyfh@gmail.com>2018-12-17 22:12:04 +0000
commit36afd8c0c2733abba5a4e55279dee8b7bfc53187 (patch)
tree7d4a24fa428cd9e1fdd954d4632731fa50901f0e
parent0147d963bbee00dbcfdf34f0738c8b3797babdde (diff)
Adding black shortcut
-rw-r--r--plugin/vim-options.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index a8a5a5f..d8ed6bd 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -102,13 +102,15 @@ nnoremap ]q :lnext<CR>
nnoremap [w :cprev<CR>
nnoremap ]w :cnext<CR>
" Set breakpoint in python
-noremap <leader>eb ofrom pudb import set_trace; set_trace()<ESC>
+noremap <leader>ep ofrom pudb import set_trace; set_trace()<ESC>
" Vertical split instead of horiztonal
noremap <c-w>f <c-w>f<c-w>L
" <c-w>] uses path not tags file?
noremap <c-w>] <c-w>v<c-]><c-w>L
" Run isort on file
noremap <leader>ei :!isort %<CR>
+" Run black on file
+noremap <leader>eb :!black %<CR>
" Session saving
function! SaveSession()
:mksession! $SessionDir/session.vim