Skip to content

Incompatibility with set hidden #35

@Dupond

Description

@Dupond

Hello,

I use neovim 0.4.4 (in Arch Linux). I have the following alias defined in my .bashrc to automatically use your plugin when two folders are compared:

function __vimdiff {
    if [ -d "$1" ] && [ -d "$2" ] && [ -z "$3" ]; then
        /usr/bin/nvim -c "DirDiff $1 $2"
    else
        /usr/bin/nvim -d "$@"
    fi
}
alias vimdiff="__vimdiff"

Now, I'm experiencing a strange behaviour: if set hidden is NOT set in my init.vim file, then DirDiff works just fine; but if I set this option, then DirDiff always shows the content of the first file of the diff: when I hit the Enter key on any other file name (e.g. a file "Only in [A]"), DirDiff doesn't show its content.

I don't experience this when I launch :DirDiff dir1 dir2 from neovim itself, whether set hidden is set or not.

Is there an explanation for this? Could anyone explain me why this set hidden option could influence the behaviour of vim-dirdiff? Thanx for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions