提问人:user3236841 提问时间:11/15/2023 最后编辑:user3236841 更新时间:11/17/2023 访问量:31
是否可以让 NVIM 针对不同的用例使用两个不同的主题?
is it possible to have nvim use two different themes for different use cases?
问:
我是(neovim)的新手。nvim
我用于我的邮寄需求。对于编辑器,我使用的主题,但是,我觉得让 mutt 调用来编辑图像具有不同的图像(例如,浅色主题)会很有帮助。所以,基本上,我想用一个与我调用其他编辑案例时不同的主题来调用编辑器。这可能吗?有没有其他方法可以做到这一点?mutt
nvim
bluz71/vim-nightfly-colors
/usr/bin/nvim
overcache/NeoSolarized
mutt
nvim
nvim
更新:按照@lcheylus给出的建议,我制作了一个文件并放入其中。
我还添加了我的以下内容:.vim/ftplugin/mail.vim
colorscheme NeoSolarized
filetype plugin on
.config/nvim/init.vim
.vim/filetype/mail.vim
set termguicolors
set background=light
colorscheme NeoSolarized
" Default value is "normal", Setting this option to "high" or "low" does use the
" same Solarized palette but simply shifts some values up or down in order to
" expand or compress the tonal range displayed.
let g:neosolarized_contrast = "normal"
" Special characters such as trailing whitespace, tabs, newlines, when displayed
" using ":set list" can be set to one of three levels depending on your needs.
" Default value is "normal". Provide "high" and "low" options.
let g:neosolarized_visibility = "normal"
" I make vertSplitBar a transparent background color. If you like the origin
" solarized vertSplitBar style more, set this value to 0.
let g:neosolarized_vertSplitBgTrans = 1
" If you wish to enable/disable NeoSolarized from displaying bold, underlined
" or italicized" typefaces, simply assign 1 or 0 to the appropriate variable.
" Default values:
let g:neosolarized_bold = 1
let g:neosolarized_underline = 1
let g:neosolarized_italic = 0
" Used to enable/disable "bold as bright" in Neovim terminal. If colors of bold
" text output by commands like `ls` aren't what you expect, you might want to
" try disabling this option. Default value:
let g:neosolarized_termBoldAsBright = 1
这似乎对我有用,可以使我的 NeoSolarized 主题成为光明。
答:
1赞
lcheylus
11/15/2023
#1
您可以通过配置文件为 mail(在本例中为 Mutt)设置特定命令。ftplugin/mail.vim
要通过 、ftplugin/mail.vim
colorscheme NeoSolarized
评论
0赞
user3236841
11/16/2023
很抱歉问更多关于这个问题的问题:我应该创建一个名为 .vim/ftplugin 的新目录/文件夹,并在上面放一个?我确实尝试过,但根本没有得到任何不同。也就是说,colorscreme 没有更改为 NeoSolarized(光)。mail.vim
0赞
lcheylus
11/16/2023
是的,您需要为文件 创建。你的VIM配置中有吗?.vim/ftplugin
mail.vim
filetype plugin on
评论