Giter VIP home page Giter VIP logo

Comments (8)

guest73 avatar guest73 commented on June 21, 2024

Basically, the vertical line at the right becomes blue, selection becomes blue but most annoyingly, some numbers become black making them unreadable :(

from nnn.

N-R-K avatar N-R-K commented on June 21, 2024

nnn shouldn't be doing anything like that. It's most likely something in your .bashrc or .vimrc or similar.

Try to see if you can reproduce in a clean environment without any .bashrc or .vimrc etc.

from nnn.

guest73 avatar guest73 commented on June 21, 2024

nnn shouldn't be doing anything like that. It's most likely something in your .bashrc or .vimrc or similar.

Try to see if you can reproduce in a clean environment without any .bashrc or .vimrc etc.

But nevertheless it does something.
Tried on stock .bashrc, minimal vim config where loaded just 1 plugin
Plug 'tinted-theming/base16-vim

let base16_colorspace=256
let base16_background_transparent=1
colorscheme base16-default-dark

and then
source .config/bash-config/colors.sh - which is the script posted in original message
Run nnn, do the steps and it happens again.
I am not an expert on bash, but I guess nnn does something weird with sub-shelling when calling Vim with e key.
I can run vim a couple of times, do some editing, run MidnightCommander, trigger vim from it, do more editing, quit MC, do editing again, and no problem whatsoever. Also when I run nnn and simply do the navigation and then quit it also works ok. But once I press e and start vim and quit it, next time I run vim its colors are screwed.
It might be something related to xfce-terminal I use, but I doubt it.

from nnn.

N-R-K avatar N-R-K commented on June 21, 2024

source .config/bash-config/colors.sh

Are you putting this in your bashrc?

from nnn.

guest73 avatar guest73 commented on June 21, 2024

source .config/bash-config/colors.sh

Are you putting this in your bashrc?

It does not matter. I can put it in .bashrc or source it in the shell, the result is the same.

from nnn.

N-R-K avatar N-R-K commented on June 21, 2024

I guess nnn does something weird with sub-shelling when calling Vim with e key.

nnn doesn't spawn any sub-shells. It executes $EDITOR directly.

Plug 'tinted-theming/base16-vim

It seems like this colorscheme executes some shell script: https://github.com/tinted-theming/base16-vim/blob/17b238f0c173b4c174523690bb41cdab952ee27b/colors/base16-default-dark.vim#L12-L16

I suspect this is what's causing the issue. If you cannot reproduce it with vim --clean then the problem is likely not in nnn.

from nnn.

guest73 avatar guest73 commented on June 21, 2024

Ok. I figured. What helped was setting

set termguicolors

inside .vimrc.
This is mentioned inhere Troubleshooting

Also

It seems like this colorscheme executes some shell script: https://github.com/tinted-theming/base16-vim/blob/17b238f0c173b4c174523690bb41cdab952ee27b/colors/base16-default-dark.vim#L12-L16

is not true. None of the docs for either TintedTheming Vim or Base16-vim
was actually saying I must set this variable let g:base16_shell_path, so I did not. And without this variable nothing was actually executed. But I guess it must be set in order to work in login shells or something.

Nevertheless, @N-R-K thanks for pointing me in the right direction.

from nnn.

guest73 avatar guest73 commented on June 21, 2024

Seems like indeed not nnn's problem.

from nnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.