In my .vimrc file, I would like to store in a variable the result of an external command, in my case :
$ echo $LANG
So that my
vimrc file would have :
let language = output(!echo $LANG) if language == 'en' nnoremap <somekey> <ohanotherkey!> end if
So far I couldn't find how to do it. I've found that in command mode,
:read !echo $LANG would insert in my current file the content I am looking for. But I don't know how to write it down in a vimrc file.