1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Quickly insert date/time header

This commit is contained in:
2015-11-06 13:01:02 +01:00
parent 1657a1c25b
commit c2b20eaba1

2
.vimrc
View File

@@ -236,6 +236,8 @@ map <Leader>jt <Esc>:%!json_xs -f json -t json-pretty<CR>
" Replace 'dayh' with a formatted day header
iab <expr> dayh strftime("== %Y%m%d %A ======")
" Replace 'timeh' with a formatted date/time header
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
" Fly through buffers instead of cycling
nnoremap <leader>l :ls<cr>:b<space>