aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-03-02 09:15:45 -0700
committerCody Hiar <codyfh@gmail.com>2017-03-02 09:15:45 -0700
commit9fd11f01580375ff48bd372d818edf23e5745d16 (patch)
tree5a627afb0ed9551a1955fbbe6aca0e896f87f95c /plugin
parentd06f08642091d510c472bbe60254a8241d67e50f (diff)
Add shortcut to open folder of current file
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-options.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index e76e377..a864cb5 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -151,6 +151,8 @@ nnoremap <leader>dd :diffget<CR>
nnoremap <leader>df :diffput<CR>
nnoremap _ [c
nnoremap = ]c
+" Open folder of current file
+nnoremap <leader>n :e %:p:h<CR>
" Snippets
nnoremap <leader>,date :-1read !date +\%F<CR>
nnoremap <leader>,fabfile :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/fabfile.py<CR>