There are too(?) many ways to do this.
writes all mappings and changed options to a file (.exrc by default)
2) Option window
opens a buffer with extra UI to change options (the code is in $VIMRUNTIME/optwin.vim); of course, the buffer is accessible by standard Vim commands too
3) Expression register
will insert the value of option
guifont into the current buffer
nnoremap <silent><leader>x :-1put=trim(execute(input(\":\")))<CR>
<leader>x and then input any Vim command (e.g.
set); the output will be inserted into the current buffer
Anything else I forgot?