Skip to content

Commit

Permalink
Merge pull request #8 from rr-/master
Browse files Browse the repository at this point in the history
Support netrw's network protocols
  • Loading branch information
duggiefresh authored Aug 25, 2017
2 parents 65c7a95 + 806ef25 commit 77334b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/easydir.vim
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
Expand All @@ -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

0 comments on commit 77334b8

Please sign in to comment.