From 806ef25e1bf59ecbaa5ef56a12e92578cde228cb Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 23 Aug 2017 14:40:23 +0200 Subject: [PATCH] Support netrw's network protocols --- plugin/easydir.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/easydir.vim b/plugin/easydir.vim index 9a679c1..5a2a04d 100644 --- a/plugin/easydir.vim +++ b/plugin/easydir.vim @@ -1,7 +1,7 @@ " Plugin: easydir.vim " Description: A simple to create, edit and save files and directories. -" Version: 1.0 -" Last Change: 2013 Dec 6 +" Version: 1.1 +" Last Change: 2017 Aug 23 " Maintainer: Doug Yun | " DockYard, LLC 2013 | http://dockyard.com " License: MIT License (MIT) | Copyright 2013 @@ -18,7 +18,8 @@ augroup END function create_and_save_directory() let s:directory = expand(':p:h') - if !isdirectory(s:directory) + if s:directory !~# '^\(scp\|ftp\|dav\|fetch\|ftp\|http\|rcp\|rsync\|sftp\|file\):' + \ && !isdirectory(s:directory) call mkdir(s:directory, 'p') endif endfunction