Use F12 key to swap between dark/light color scheme. Reload configuration file or restart Vim. " map F12 to ToggleSolarizedTheme() function Runtime autoload/lightline/colorscheme/solarized.vim For the dark you can use the one which comes with xfce-terminal (Edit->Properties->Color->Presets Solarized (dark/light) Important is that you go afterwards to /.config/xfce4/terminal/terminalrc and remove ColorCursor Than edit the. Let &background = ( &background = "dark"? "light" : "dark" ) " change background and update lightline color scheme " define function to toggle solarized theme It is based on ToggleBG function from a Solarized theme. once you get into more advanced customizations, you end up writing vimscript in both. Simply another way to force Solarized to use a dark or light background. If you wish to stop Solarized from displaying bold, underlined or italicized typefaces, simply assign a zero value to the appropriate variable, for example: let g:solarizeditalic0. changing 'normal' to 'N' can be customized with g:airlinemodemap, which is in the documentation. g:solarizedbold g:solarizedunderline g:solarizeditalic. $ git clone ~/.vim/pack/interface/start/lightline.vimĬreate basic ~/.vimrc file with additional ToggleSolarizedTheme() function mapped to F12 key that will change the background color and indirectly main color scheme, then update the status line to reflect changes. The main reason for the existence of this project is that the original Solarized theme does not define guifg and guibg in terminal Vim, making it unsuitable for. Im not sure why setting the color scheme to default worked but Im using solarized light as my terminal theme so maybe the colors are just similar to. solarized is easily the most complicated theme of all, since it handles 8/16/256/dark/light combinations. $ git clone ~/.vim/pack/interface/start/vim-colors-solarizedĭownload lightline status line plugin. $ mkdir -p ~/.vim/pack/interface/start/ĭownload the Solarized color scheme. Install plugins #Ĭreate a directory that will be used to load main color scheme and status line plugin during application startup. On the other hand, minipac is a minimal package manager for Vim 8 that takes advantage of new features. Still, you can use the older version with pathogen, bundle, or vim-plug Vim plugin manager. This tutorial requires at least the most recent Vim 7.4 (probably the lowest supported version is in this case) as it provides native third-party package loading. I am using the lightline status line with the Solarized color scheme inside Vim text editor.Įnsure that terminal is set to the Solarized color scheme.
0 Comments
Leave a Reply. |