Vim - Show active spellcheck languages ​​in the status bar

I would like to set up the status bar in vim to show the languages ​​that spellchecking checks for. Something like that

File: hello.txt [text][utf8][unix][en,de] CWD: ~ Line: 1/10:1 

I added this line to my .vimrc:

 set statusline+=%{v:lang} 

However, I get the following result, which is not quite what I want

 File: hello.txt [text][utf8][unix][en_US.utf8] CWD: ~ Line: 1/10:1 

The main drawback is that I do not see all languages ​​being activated (en and de)

I was looking for a variable similar to v: lang. Can someone show me the most convenient way to do this?

+4
source share
1 answer

I believe that set with the spelllang parameter if you use the built-in spelllang , not the plugin:

 set statusline+=%{&spelllang} 
+6
source

Source: https://habr.com/ru/post/1400243/