I can display variables in vim using :let g: but I cannot search in it (keybindings seem very limited). Can vim open this content as internal buffer or pass to some other command?
Vim search in global variables
vim
What you can do is use :redir to write them out to a file and then edit them::redir > variables.vim:let g::redir END:n variables.vimor use variables.vim as input to some other command.