From 6aa7e42b6e75094afed93151f5f6678f24e56b3f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 01:07:51 +1200 Subject: Amend comment on :Establish --- vim/vimrc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index bff8e241..c8711567 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -221,15 +221,12 @@ augroup vimrc augroup END " We're going to be creating a few directories now. The code to do so in -" a compatible way is surprisingly verbose, because as well as expanding what -" we were provided as an argument, the :help for mkdir() indicates we need to -" check the function is actually available before using it. -" -" We also need to check whether the directory already exists, even if we -" specify the special 'p' value for its optional {path} argument. This is -" because until v8.0.1708, mkdir() raises an error if the directory to be -" created already exists, even with a {path} of 'p', where the analogous -" `mkdir` shell command does not do so with its -p option included. +" a compatible way is verbose, mostly because we need to check whether the +" directory already exists, even though we're specifying the special 'p' value +" for its optional {path} argument. This is because until v8.0.1708, mkdir() +" raises an error if the directory to be created already exists, even with +" a {path} of 'p', where the analogous `mkdir` shell command does not do so +" with its -p option included. " " " @@ -237,7 +234,7 @@ augroup END " hide it behind a user command :Establish. We'll lock down all the " directories that we create with restrictive permissions, too. Who knows " what secrets are in your file buffers? - +" " We set the command's tab completion to provide directory names as " candidates, and specify that there must be only one argument, which we'll " provide as a quoted parameter to the function. -- cgit v1.2.3