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