浏览代码

Always open vimdiff at start of file

master
Arun Prakash Jana 5 年前
父节点
当前提交
52fad544fc
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      README.md
  2. +1
    -1
      plugins/ndiff

+ 1
- 1
README.md 查看文件

@@ -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.

+ 1
- 1
plugins/ndiff 查看文件

@@ -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"


||||||
x
 
000:0
正在加载...
取消
保存