I found a post where one asks how to show the current colorscheme
. I'd like to combine this with the prompt. That is, separately, :colorscheme>CR>
and :colorscheme <C-z><S-Tab>
work, as showing and prompting for colorscheme
respectively. I'm not sure how to combine these into one command. Here are my attempts,
nnoremap <leader>c :echo g:colors_name \n<CR>
function! Colors()
:colorscheme<cr>
:colorscheme <C-z><S-Tab>
endfunction
nnoremap <leader>c :exec Colors()
nnoremap <leader>c :colorscheme<cr>:colorscheme <C-z><S-Tab>
nnoremap <leader>c :echo g:colors_name<cr><bar>:colorscheme <C-z><S-Tab>
Separately, these two work:
nnoremap <leader>s :colorscheme<CR>
nnoremap <leader>c :colorscheme <C-z><S-Tab>
(By the way, I use set wildcharm=<C-z>
and set wildmenu wildmode=list:full
.)