Comments (8)
Basically, the vertical line at the right becomes blue, selection becomes blue but most annoyingly, some numbers become black making them unreadable :(
from nnn.
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.
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.
source .config/bash-config/colors.sh
Are you putting this in your bashrc?
from nnn.
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.
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.
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.
Seems like indeed not nnn
's problem.
from nnn.
Related Issues (20)
- Icons does not work when NNN is opened with -C option HOT 5
- preview-tui: mpv HOT 11
- Syntax error with prescribed split-pane script HOT 7
- tabs content colorization is not working (zsh+tmux) HOT 3
- preview-tui does not work with tmux 3.4 HOT 1
- Wrong position of previews in 4K monitor with fractional scaling of 1.5
- Files created with `n`, `f` have incorrect permissions HOT 5
- sort order.... whatever it means.. HOT 2
- preview-tui with wezterm: No FIFO available! ($NNN_FIFO='') HOT 2
- Respect keys regardless of kb language input HOT 4
- Visual Glitch, visual bug, the whole screen breaks, resize does something, redraw does not
- Sorting bug, different behavior for t and ^T HOT 2
- Misleading typo in the wiki HOT 1
- [plugin] file preview panel get stuck when use plugin preview-tui with tmux and bat HOT 2
- Keybind collision when using the colemak patch HOT 5
- malloc: error pointer being freed was not allocated HOT 9
- The first letter of the file is not correct after change dir HOT 2
- [bash] nnn can't return after executing command (] key) if invoked from a `bind -x` keybinding. HOT 4
- preview-tui: 1: eval: Syntax error: "(" unexpected HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nnn.