ajout raccourci date et heure
This commit is contained in:
4
vimrc
4
vimrc
@@ -124,3 +124,7 @@ noremap ifl :put =expand('%:p')<CR><Esc>ddggPI#<Esc>`'
|
|||||||
"remove trailing spaces
|
"remove trailing spaces
|
||||||
noremap Ds <Esc>:%s/ *$//g<CR>
|
noremap Ds <Esc>:%s/ *$//g<CR>
|
||||||
|
|
||||||
|
"insert date at cursor position
|
||||||
|
inoremap ,D <C-R>=strftime("%F") <CR>
|
||||||
|
"insert time at cursor position
|
||||||
|
inoremap ,T <C-R>=strftime("%H:%M") <CR
|
||||||
|
|||||||
Reference in New Issue
Block a user