diff options
-rw-r--r-- | vim/config/command.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/config/command.vim b/vim/config/command.vim index f339635f..09ee0f40 100644 --- a/vim/config/command.vim +++ b/vim/config/command.vim @@ -25,3 +25,12 @@ set shellpipe=> if exists('+shellslash') set shellslash endif + +" \d inserts the current local date from date(1) +nnoremap <silent> + \ <Leader>d + \ :<C-U>read !date<CR> +" \D inserts the current UTC date from date(1) +nnoremap <silent> + \ <Leader>D + \ :<C-U>read !date -u<CR> |