From 30bfc5db287bf35d3bb77a345c5192b035c98755 Mon Sep 17 00:00:00 2001 From: simonkellet Date: Tue, 9 Nov 2021 16:16:42 +0000 Subject: [PATCH] added map for inserting date, very useful for paper writing! --- nvim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 0c65d1c..098b1fe 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -103,6 +103,9 @@ au BufNewFile ~/vimwiki/diary/*.md :silent 0r !~/.config/nvim/generate-vimwiki-d let NERDTreeMapOpenInTab='' +" Insert Date +nnoremap d :put=system('date +%d/%b/%Y') + " Tex let g:vimtex_complete_enabled = 1 let g:livepreview_previewer = 'zathura' @@ -139,6 +142,7 @@ autocmd! User GoyoLeave Limelight! " : completion. inoremap pumvisible() ? "\" : "\" + " Switching windows nnoremap h nnoremap j