mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 03:35:10 +01:00
Quickly insert date/time header
This commit is contained in:
2
.vimrc
2
.vimrc
@@ -236,6 +236,8 @@ map <Leader>jt <Esc>:%!json_xs -f json -t json-pretty<CR>
|
|||||||
|
|
||||||
" Replace 'dayh' with a formatted day header
|
" Replace 'dayh' with a formatted day header
|
||||||
iab <expr> dayh strftime("== %Y%m%d %A ======")
|
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
|
" Fly through buffers instead of cycling
|
||||||
nnoremap <leader>l :ls<cr>:b<space>
|
nnoremap <leader>l :ls<cr>:b<space>
|
||||||
|
|||||||
Reference in New Issue
Block a user