diff options
author | Andreas Fankhauser hiddenalpha.ch | 2023-12-06 23:40:07 +0100 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2023-12-06 23:40:07 +0100 |
commit | e5f40e0acbf4d66a6b94aecdbb8d04c0b87e4c70 (patch) | |
tree | 702006d13efbd5d466cb48af1f342f2aa0f8db9b | |
parent | 2caf3383c57eef6768bda5ff96e865a2e70b9a14 (diff) | |
download | dotfiles-e5f40e0acbf4d66a6b94aecdbb8d04c0b87e4c70.zip dotfiles-e5f40e0acbf4d66a6b94aecdbb8d04c0b87e4c70.tar.gz |
Yet a better idea for F5 input
-rw-r--r-- | src/vi/_vimrc | 3 |
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> |