will133 / vim-dirdiff

Vim plugin to diff two directories
335 stars 59 forks source link

Is it possible to run dirdiff from command line in Linux #10

Closed vortexnix closed 4 years ago

vortexnix commented 7 years ago

This may be a dumb question but I am trying to setup vim-dirdiff as my git difftool. For that, I need to run dirdiff from the command line directly. Also, it would be nice if I can do a vimdiff of directories directly from command line. Thanks.

BarrettLowe commented 7 years ago

I use zsh and do something like this in my .zshrc file: vimDirDiff() { echo "Please wait while vim diffs the directories" args=$@ vim -f "+execute \"DirDiff $args\" echo "vimDirDiff Done" }

kgfly commented 5 years ago

vim -c "DirDiff $1 $2"

will133 commented 4 years ago

That -c command should work.