Editing Color schemes

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 62: Line 62:
==Permanently Applying Color schemes==  
==Permanently Applying Color schemes==  
The color schemes in vifm can be applied in two different ways:
colorscheme Default
# as the default (or main) color scheme
# as local to a panel color scheme
Both types are set using |vifm−:colorscheme| command, but of different forms:
Per-directory schemes.
# <code>:colorscheme color_scheme_name − for the default color scheme</code>
# <code>:colorscheme color_scheme_name directory − for local color schemes</code>
Look of different parts of the TUI (Text User Interface) is determined in this way:
# Border, TopLineSel, TopLine, CmdLine, ErrorMsg, StatusLine and WildMenu are always determined by the default color scheme
# CurrLine, Selected, Directory, Link, BrokenLink, Socket, Device, Executable, Fifo and Win are determined by default color scheme and a set of local colorschemes, which can be empty
There might be a set of local color schemes because they are structured hierarchically according to file system structure. For example, having the following piece of file system:
’−− bin
    ’−− my
Two color schemes:
# ~/.vifm/colors/for_bin
highlight Win cterm=none ctermfg=white ctermbg=red
highlight CurrLine cterm=none ctermfg=red ctermbg=black
# ~/.vifm/colors/for_bin_my
highlight CurrLine cterm=none ctermfg=green ctermbg=black
# ~/.vifm/vifmrc
colorscheme Default
colorscheme for_bin ~/bin
colorscheme for_bin_my ~/bin/my
File list will look in the following way for each level:
<!--use <pre style="color: red"> for styling the following
or else perhaps screenshots would work nicely-->
~/ − Default color scheme
black background;
cursor with blue background
~/bin/ − mix of Default and for_bin color schemes
red background;
cursor with black background and red foreground
~/bin/my/ − mix of Default, for_bin and for_bin_my color schemes
red background;
cursor with black background and green foreground
==User Color schemes==
==User Color schemes==

Please note that all contributions to Vifm Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Vifm:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: