diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-19 16:28:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-19 16:28:59 +1200 |
commit | 4ff81411383ae372f88caa58a87ee997332c872b (patch) | |
tree | 43ac81c798647dca01543219fd9ef2bb0fb6d865 | |
parent | Merge branch 'release/v4.33.0' into develop (diff) | |
download | dotfiles-4ff81411383ae372f88caa58a87ee997332c872b.tar.gz dotfiles-4ff81411383ae372f88caa58a87ee997332c872b.zip |
Add mapping to create path for current file
Might also make a BufWritePre hook for this that prompts.
-rw-r--r-- | vim/vimrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |