FIX: formatting

main
Michael Clemens 2 years ago
parent 670ce2be96
commit 7e284487f7

@ -18,11 +18,14 @@ Because it's nice to take a small GNU/Linux based laptop with me on portable ope
You can insert the current time in UTC and HHMM format by pressing <F5> and the current date string by pressing <F6> if you add the following lines to your .vimrc file: You can insert the current time in UTC and HHMM format by pressing <F5> and the current date string by pressing <F6> if you add the following lines to your .vimrc file:
"Insert current time in HHMM format with <F5> " set timezone to UTC
let $TZ='UTC' let $TZ='UTC'
" insert current time in HHMM format with <F5>
:nnoremap <F5> "=strftime("%H%M ")<CR>P :nnoremap <F5> "=strftime("%H%M ")<CR>P
:inoremap <F5> <C-R>=strftime("%H%M ")<CR> :inoremap <F5> <C-R>=strftime("%H%M ")<CR>
"Insert current date with <F6>
" insert current date with <F6>
:nnoremap <F6> "=strftime("date %G-%m-%d")<CR>P :nnoremap <F6> "=strftime("date %G-%m-%d")<CR>P
:inoremap <F6> <C-R>=strftime("date %G-%m-%d")<CR> :inoremap <F6> <C-R>=strftime("date %G-%m-%d")<CR>

Loading…
Cancel
Save