mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 06:40:25 +01:00
Abbreviation shortcuts for date, time, uuid
This commit is contained in:
7
.vimrc
7
.vimrc
@@ -674,6 +674,13 @@ iab <expr> dayh strftime("== %Y%m%d %A ======")
|
|||||||
" Replace 'timeh' with a formatted date/time header
|
" Replace 'timeh' with a formatted date/time header
|
||||||
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
|
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
|
||||||
|
|
||||||
|
iabbrev <expr> ,d strftime('%Y-%m-%d')
|
||||||
|
iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')
|
||||||
|
inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()
|
||||||
|
" vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
|
||||||
|
" vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
|
||||||
|
" vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
|
||||||
|
|
||||||
" 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