We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65c7a95 commit 806ef25Copy full SHA for 806ef25
plugin/easydir.vim
@@ -1,7 +1,7 @@
1
" Plugin: easydir.vim
2
" Description: A simple to create, edit and save files and directories.
3
-" Version: 1.0
4
-" Last Change: 2013 Dec 6
+" Version: 1.1
+" Last Change: 2017 Aug 23
5
" Maintainer: Doug Yun | <doug.yun@dockyard.com>
6
" DockYard, LLC 2013 | http://dockyard.com
7
" License: MIT License (MIT) | Copyright 2013
@@ -18,7 +18,8 @@ augroup END
18
19
function <SID>create_and_save_directory()
20
let s:directory = expand('<afile>:p:h')
21
- if !isdirectory(s:directory)
+ if s:directory !~# '^\(scp\|ftp\|dav\|fetch\|ftp\|http\|rcp\|rsync\|sftp\|file\):'
22
+ \ && !isdirectory(s:directory)
23
call mkdir(s:directory, 'p')
24
endif
25
endfunction
0 commit comments