From 9fd11f01580375ff48bd372d818edf23e5745d16 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 2 Mar 2017 09:15:45 -0700 Subject: Add shortcut to open folder of current file --- plugin/vim-options.vim | 2 ++ 1 file changed, 2 insertions(+) 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 dd :diffget nnoremap df :diffput nnoremap _ [c nnoremap = ]c +" Open folder of current file +nnoremap n :e %:p:h " Snippets nnoremap ,date :-1read !date +\%F nnoremap ,fabfile :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/fabfile.py -- cgit v1.2.3