aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 136c775a..3df8f97f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -360,6 +360,9 @@ nmap <Leader>O <Plug>(PasteOpenAbove)
" \p toggles paste mode
nnoremap <Leader>p :<C-U>set paste! paste?<CR>
+" \P creates the path to the current file
+nnoremap <Leader>P :<C-U>call mkdir(expand('%:h'), 'p')<CR>
+
" \q formats the current paragraph
nnoremap <Leader>q gqap