Giter Club home page Giter Club logo

Comments (15)

jarun avatar jarun commented on May 29, 2024 1

Work around for now is to change the &shell to something like zsh

I am on zsh and still see the same issue. Tried let g:nnn#shell = '/usr/bin/zsh' too.

from nnn.vim.

pddevins avatar pddevins commented on May 29, 2024

I am also experiencing this bug:
OS: macOS 10.15.5
Terminal: iTerm2
Shell: zsh 5.7.1
Vim version: 8.2.1100
Plugin manager: vim-plug
Plugin version: master
Nnn version: 3.2

from nnn.vim.

TomBaxter avatar TomBaxter commented on May 29, 2024

I was unable to reproduce this issue with the given nnn.vim configuration.
OS: Ubuntu 20.04
Terminal: gnome-terminal
Shell: tried with both bash and zsh
Vim version: Neovim 0.4.3
Plugin manager: vim-plug
Plugin version: master
Nnn version: 3.0

from nnn.vim.

katmfoo avatar katmfoo commented on May 29, 2024

I am also experiencing this bug

OS: Arch
Terminal: Termite
Shell: bash 5.0.18
Vim version: 8.2.1704
Plugin manager: vim-plug
Plugin version: master
Nnn version: 3.4

from nnn.vim.

jarun avatar jarun commented on May 29, 2024

@mcchrish can you take a look? Otherwise, someone has to pitch in.

from nnn.vim.

mcchrish avatar mcchrish commented on May 29, 2024

I'm not able to reproduce the bug. Using vim or neovim, nnn version 3.4.
I opened an nnn popup window to view a directory with lots of subdirs and files, still able to scroll through them.

Does it only happen with popup/floating windows?

from nnn.vim.

katmfoo avatar katmfoo commented on May 29, 2024

@mcchrish For me, yes it only happens with popup/floating windows. Scrolling through a directory with more files/folders than there are lines in the popup window cause a bunch of weird things to happen.

Here is a recording of what it looks like to me: https://asciinema.org/a/360436

This is just me repeatedly hitting j to move down through the files on the root of my system. As you can see, when it starts scrolling, things get weird.

My vimrc: https://github.com/pricheal/dotfiles/blob/master/.vimrc
and my vim config for nnn.vim: https://github.com/pricheal/dotfiles/blob/master/.vim/plugin/nnn.vim

Edit: here is scrolling working normally without floating window: https://asciinema.org/a/360438

from nnn.vim.

mcchrish avatar mcchrish commented on May 29, 2024

I'm now able reproduce the bug on vim + bash.
Bash:

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.

Vim:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 16 2020 23:47:44)
macOS version
Included patches: 1-1700

Minimal vimrc:

set nocompatible
set hidden

let g:nnn#command = 'nnn -C'
let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } }
set shell=/bin/bash

call plug#begin('~/.local/share/nvim/vendor')
Plug '~/vimming/nnn.vim'
call plug#end()

I'm not sure if there is anything else this plugin can do to fix the bug. It could be a problem coming from either Vim terminal, bash or nnn itself. (Also able to reproduce bug in floatterm nnn wrapper).

Work around for now is to change the &shell to something like zsh or move to neovim.
I made an option to configure the shell which this plugin will use with the setting g:nnn#shell. e.g let g:nnn#shell = '/bin/zsh'. See :h g:nnn#shell. 02c625f

from nnn.vim.

ldelossa avatar ldelossa commented on May 29, 2024

I honestly havent experienced this issue since moved to a new laptop and reinstalled linux. So i cant help troubleshoot further.

from nnn.vim.

beckeru avatar beckeru commented on May 29, 2024

For me it works if airline is not loaded.

from nnn.vim.

katmfoo avatar katmfoo commented on May 29, 2024

@mcchrish I am still experiencing this issue and haven't been able to figure out any fix. What specifically would I need to put in my vim config for the work around you listed above (with the &shell option)?

from nnn.vim.

beckeru avatar beckeru commented on May 29, 2024

Maybe the issue is related to 256-colors when setting NNN_COLORS in 256 color format see

export NNN_COLORS='#0a0a0a0a'

it also works for me (even with airline)

from nnn.vim.

katmfoo avatar katmfoo commented on May 29, 2024

Setting my shell to zsh doesn't fix the issue for me, neither does changing any color settings with the -C option or the NNN_COLORS environment variable.

from nnn.vim.

mcchrish avatar mcchrish commented on May 29, 2024

Similar issue: voldikss/vim-floaterm#171

from nnn.vim.

jarun avatar jarun commented on May 29, 2024

The original issue submitter mentioned he is not seeing this anymore. I am also not seeing any glitches after moving to nvim.

For others who see this on vim - it's probably broken in vim. If you are on vim, consider moving to neovim.

We will not waste our time on vim-only issues going forward. Being a legacy software, it has a huge community for namesake, but not a single member buzzes when it comes to actual contribution.

from nnn.vim.

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.