-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from rr-/master
Support netrw's network protocols
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | <[email protected]> | ||
" DockYard, LLC 2013 | http://dockyard.com | ||
" License: MIT License (MIT) | Copyright 2013 | ||
|
@@ -18,7 +18,8 @@ augroup END | |
|
||
function <SID>create_and_save_directory() | ||
let s:directory = expand('<afile>: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 |