From 3d448ef520dceed9b5872c2541a3d600f7deea59 Mon Sep 17 00:00:00 2001 From: MoonPadUSer Date: Mon, 9 Nov 2020 20:57:47 +0100 Subject: [PATCH 1/2] Add 'Open in directory of current file' example to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 715e91e..f38bd05 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,11 @@ Then run `:PlugUpdate` nnoremap f :F ``` +```vim +" Open fff on press of 'f' in directory of current file +nnoremap f :F %:p:h +``` + ## Customization ### Split Size From b9e8754d0f59bb6c47eafa0d7de60680dd842416 Mon Sep 17 00:00:00 2001 From: MoonPadUSer Date: Tue, 15 Dec 2020 07:19:01 +0100 Subject: [PATCH 2/2] Fix command breaking on directories with spaces or apostrophes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f38bd05..feaf506 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ nnoremap f :F ```vim " Open fff on press of 'f' in directory of current file -nnoremap f :F %:p:h +nnoremap f ':F ' . expand('%:p:h:S') . "\n" ``` ## Customization