Skip to content

Commit 806ef25

Browse files
authored
Support netrw's network protocols
1 parent 65c7a95 commit 806ef25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugin/easydir.vim

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Plugin: easydir.vim
22
" Description: A simple to create, edit and save files and directories.
3-
" Version: 1.0
4-
" Last Change: 2013 Dec 6
3+
" Version: 1.1
4+
" Last Change: 2017 Aug 23
55
" Maintainer: Doug Yun | <doug.yun@dockyard.com>
66
" DockYard, LLC 2013 | http://dockyard.com
77
" License: MIT License (MIT) | Copyright 2013
@@ -18,7 +18,8 @@ augroup END
1818

1919
function <SID>create_and_save_directory()
2020
let s:directory = expand('<afile>:p:h')
21-
if !isdirectory(s:directory)
21+
if s:directory !~# '^\(scp\|ftp\|dav\|fetch\|ftp\|http\|rcp\|rsync\|sftp\|file\):'
22+
\ && !isdirectory(s:directory)
2223
call mkdir(s:directory, 'p')
2324
endif
2425
endfunction

0 commit comments

Comments
 (0)