Open sedimentation-fault opened 1 year ago
FWIW I also have
BLK="0B" CHR="0B" DIR="04" EXE="06" REG="00" HARDLINK="06" SYMLINK="06" MISSING="00" ORPHAN="09" FIFO="06" SOCK="0B" OTHER="06"
export NNN_FCOLORS="$BLK$CHR$DIR$EXE$REG$HARDLINK$SYMLINK$MISSING$ORPHAN$FIFO$SOCK$OTHER"
(taken from https://github.com/sigmavim/vimrc) in my ~/.bashrc
.
How to set colors in nnn.vim
I've had to spend days(!) to find out how to set some colors in
nnn.vim
. One problem is that documentation about them is so hard to find, so let me put some information here for anyone with the same problem:, so let's try it:
In my
/etc/vim/vimrc.local
I have:The above works only partially for me:
StatusLineNC
group, so that's OK.NNN_COLORS
does not have any effect, even thoughg:nnn#command
isnnn -C
, which means that at least directories should be colored according to the context colors set inNNN_COLORS
. Directories are always blue for me (color 4, the default for all contexts) in the floating window.g:nnn#command
tonnn -D
has only the effect of painting directories (in the floating window) in white too, according to theguifg
color ofNnnNormalFloat
. Directories should appear in "context color" and it seems thatguifg
overwrites the context color set inNNN_COLORS
- not sure if that's OK or not...<leader>-n
, should change the "non-current" window (the background window that has just lost its focus to the floating one) to the color set inNnnNormalNC
. This works if I have one or two files open, but not if I have opened a whole session that contains dozens of files. I have taken care to save my sessions without options, i.e. I have taken awayoptions
from mysessionoptions
variable:set sessionoptions=blank,buffers,curdir,folds,help,tabpages,winsize,terminal
.How to reproduce
Use the above settings and try to set colors.
Expected behavior
Consistent, trouble-free user experience regarding colors.
Environment: