I would like to use the locale en_US.UTF-8 only for a specific mapping in Vim, while keeping my system locale set to German. This would allow me to have timestamps in English for specific mappings without changing the entire locale setting.
Hello, I have the following lines in my \~/.vimrc `" map timestamp in RFC822 format to F9 key` `nnoremap <F9> "=strftime("%a, %d %b %Y %H:%M:%S %z")<CR>P` `inoremap <F9> <C-R>=strftime("%a, %d %b %Y %H:%M:%S %z")<CR>` The mapping works, but as I have set my locales in my operating system (Debian GNU/Linux 13 Trixie) to German (de\_DE.UTF-8), the created timestamp uses German names for days and months. Is it possible to use the locale en\_US.UTF-8 only for the mapping in Vim? I would like to have the timestamp in English.