summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser2023-12-07 13:09:22 +0100
committerAndreas Fankhauser2023-12-07 13:09:22 +0100
commit3c264d6283072ee90ca55877668ecf4ccec5bdc6 (patch)
tree702006d13efbd5d466cb48af1f342f2aa0f8db9b
parent2caf3383c57eef6768bda5ff96e865a2e70b9a14 (diff)
parente5f40e0acbf4d66a6b94aecdbb8d04c0b87e4c70 (diff)
downloaddotfiles-3c264d6283072ee90ca55877668ecf4ccec5bdc6.zip
dotfiles-3c264d6283072ee90ca55877668ecf4ccec5bdc6.tar.gz
Merge remote-tracking branch 'gh-hiddenalpha/master'
-rw-r--r--src/vi/_vimrc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vi/_vimrc b/src/vi/_vimrc
index de9679c..31036e5 100644
--- a/src/vi/_vimrc
+++ b/src/vi/_vimrc
@@ -189,8 +189,7 @@ if has("win32")
else
" Insert a hash
- inoremap <F5> <C-R>=system("head -c32 /dev/urandom\|md5sum\|head -c32'")<CR>
- "Obsolete: inoremap <F5> <C-R>=system("date\|md5sum\|awk '{printf \"%s\",$1}'")<CR>
+ inoremap <F5> <C-R>=system("head -c32 /dev/urandom\|base64\|tr -d '\n=+/'\|head -c16")<CR>
" insert current TS
inoremap <S-F5> <C-R>=strftime('%Y-%m-%d_%H:%M:%S%z')<CR>