aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-06 01:18:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-06 01:18:33 +1200
commit7e3f0453af40917484601cde59d7da7f1917f1f5 (patch)
tree4d3300be31e50b864baad18c1ca186ace49d6391
parentMerge branch 'release/v8.15.0' (diff)
parentUpdate PGP key (diff)
downloaddotfiles-7e3f0453af40917484601cde59d7da7f1917f1f5.tar.gz
dotfiles-7e3f0453af40917484601cde59d7da7f1917f1f5.zip
Merge branch 'release/v8.16.0'
* release/v8.16.0: Update PGP key Call path create rather than command
-rw-r--r--VERSION4
-rw-r--r--finger/pgpkey14
-rw-r--r--o1
-rw-r--r--vim/autoload/path.vim4
-rw-r--r--vim/vimrc8
5 files changed, 9 insertions, 22 deletions
diff --git a/VERSION b/VERSION
index 39d7ee7b..a54ce5da 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v8.15.0
-Sun, 05 Apr 2020 10:30:10 +0000
+tejr dotfiles v8.16.0
+Sun, 05 Apr 2020 13:18:32 +0000
diff --git a/finger/pgpkey b/finger/pgpkey
index 1f62c961..e69de29b 100644
--- a/finger/pgpkey
+++ b/finger/pgpkey
@@ -1,14 +0,0 @@
-pub rsa4096 2013-03-12 [SC] [expires: 2020-05-16]
- FA09 C06E 1B67 0CD0 B2F5 DE60 C142 86EA 77BB 8872
-uid [ultimate] Thomas Ryder (tyrmored, tejr) <tom@sanctum.geek.nz>
-uid [ultimate] Thomas Ryder <tejr@echo-n.nz>
-uid [ultimate] Thomas Ryder <secretary@plug.org.nz>
-uid [ultimate] Thomas Ryder (TEJR) <tejr@cpan.org>
-uid [ultimate] Thomas Ryder <tyrmored@inspire.net.nz>
-uid [ultimate] Thomas Ryder <tej.ryder@gmail.com>
-sub rsa4096 2013-03-12 [E] [expires: 2020-05-16]
- 9DF1 A89F F8D9 70AF 3265 C882 96C2 CD91 E67A C61D
-sub rsa4096 2013-03-12 [S] [expires: 2020-05-16]
- 3179 90A1 4597 A1FC F82D 953A B5AF 5F89 2592 6609
-sub rsa4096 2019-08-06 [A] [expires: 2020-05-16]
- 42AE 569D 6162 7C52 03B0 74ED D58F F1F0 7E90 9B49
diff --git a/o b/o
new file mode 100644
index 00000000..3b2b1abe
--- /dev/null
+++ b/o
@@ -0,0 +1 @@
+da
diff --git a/vim/autoload/path.vim b/vim/autoload/path.vim
index e230cab2..54aacbc2 100644
--- a/vim/autoload/path.vim
+++ b/vim/autoload/path.vim
@@ -4,10 +4,10 @@ function! path#Create(name, ...) abort
if a:0 > 2
echoerr 'Too many arguments'
endif
- if isdirectory(a:name)
+ let name = fnamemodify(a:name, ':p')
+ if isdirectory(name)
return 1
endif
- let name = a:name
let path = 'p'
let prot = a:0 == 1 && a:1 ? 0700 : 0755
return mkdir(name, path, prot)
diff --git a/vim/vimrc b/vim/vimrc
index 013311b9..d0525c30 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -134,7 +134,7 @@ command! -bang -bar -complete=dir -nargs=1 CreatePath
" <https://github.com/vim/vim/releases/tag/v8.1.0716>
"
execute 'set viminfo+='.option#Escape('n'.$MYVIM.'/viminfo')
-CreatePath $MYVIM
+call path#Create($MYVIM)
" Speaking of recorded data in viminfo files, the default Vim limit of a mere
" 50 entries for command and search history is pretty stingy. Because I don’t
@@ -182,7 +182,7 @@ set backup
execute 'set backupdir^='.option#Escape(option#item#Escape(
\ $MYVIM.'/backup'.(has#('patch-8.1.251') ? '//' : ''),
\))
-CreatePath! $MYVIM/backup
+call path#Create($MYVIM.'/backup')
" Files in certain directories on Unix-compatible filesystems should not be
" backed up, for security reasons. This is particularly important if editing
@@ -220,7 +220,7 @@ endif
"
execute 'set directory^='
\.option#Escape(option#item#Escape($MYVIM.'/swap//'))
-CreatePath! $MYVIM/swap
+call path#Create($MYVIM.'/swap')
" Keep tracked undo history for files permanently, in a dedicated cache
" directory, so that the u/:undo and CTRL-R/:redo commands will work between
@@ -239,7 +239,7 @@ if has#('persistent_undo')
set undofile
execute 'set undodir^='
\.option#Escape(option#item#Escape($MYVIM.'/undo//'))
- CreatePath! $MYVIM/undo
+ call path#Create($MYVIM.'/undo')
endif
" Now that we have a bit more confidence in our runtime environment, set up