about summary refs log tree commit diff
path: root/.vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vim/vimrc')
-rw-r--r--.vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index e93f96e..869188a 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -70,6 +70,9 @@ nnoremap =j :%!python -m json.tool<CR>
 " sudo write with w!! <https://stackoverflow.com/a/48237738>
 cnoremap w!! execute 'silent! write !sudo /usr/bin/tee % >/dev/null' <bar> edit!
 
+" write directory
+" nnoremap <leader>d :!mkdir -p %:h<CR>
+
 " windows settings
 if has('win64') || has('win32unix')
 	" yank to system clipboard