mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Always open vimdiff at start of file
This commit is contained in:
parent
4ee9e2d129
commit
52fad544fc
|
@ -281,4 +281,4 @@ To lookup keyboard shortcuts at runtime, press <kbd>?</kbd>.
|
||||||
- [Sijmen J. Mulder](https://github.com/sjmulder)
|
- [Sijmen J. Mulder](https://github.com/sjmulder)
|
||||||
- and other contributors
|
- and other contributors
|
||||||
|
|
||||||
Visit the to the [ToDo list](https://github.com/jarun/nnn/issues/337) to contribute.
|
Visit the to the [ToDo list](https://github.com/jarun/nnn/issues/386) to contribute or see the current development status.
|
||||||
|
|
|
@ -27,7 +27,7 @@ if [ -s $selection ]; then
|
||||||
# Vim: Warning: Input is not from a terminal
|
# Vim: Warning: Input is not from a terminal
|
||||||
# cat $selection | xargs -0 -o vimdiff
|
# cat $selection | xargs -0 -o vimdiff
|
||||||
|
|
||||||
cat $selection | xargs -0 vimdiff
|
cat $selection | xargs -0 -o vimdiff +0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "needs at least 2 files or directories selected for comparison"
|
echo "needs at least 2 files or directories selected for comparison"
|
||||||
|
|
Loading…
Reference in a new issue