!!!参考 http://mogile.web.fc2.com/tig/tigrc.5.html https://qiita.com/yoshikazusawa/items/d99e8b5d6f6a45aa6e2e https://qiita.com/jnuank/items/ce0e4be039302f160b5a !!!設定 !設定ファイル ~/.tigrc # main viewの左端にコミットIDを表示する set main-view = id:yes,color date author commit-title:graph=yes,refs=yes # デフォルト # set main-view = date author commit-title:graph=yes,refs=yes # set main-view-date = custom # set main-view-date-format = "%Y-%m-%d %H:%M" set main-view-date-local = true set refs-view = id:yes,color date author ref commit-title # set refs-view-date = custom # set refs-view-date-format = "%Y-%m-%d %H:%M" set refs-view-date-local = true # author, date, id, file-name, file-size, line-number, mode set tree-view = id:yes,color date author mode file-size file-name # set tree-view-date = custom # set tree-view-date-format = "%Y-%m-%d %H:%M" set tree-view-date-local = true set blame-view = id:yes,color date author line-number:yes,interval=1 text # set blame-view-date = custom # set blame-view-date-format = "%Y-%m-%d %H:%M" set blame-view-date-local = true # bind generic D !git difftool --tool=vimdiff --no-prompt --trust-exit-code %(commit)^! # bind generic D none bind generic D view-diff bind generic d none bind generic c @bash -c "echo -n %(commit) | ${COPY_CLIP}" bind generic du >git difftool -d -t vimdirdiff bind generic ds >git difftool -d -t vimdirdiff --staged bind generic dh >git difftool -d -t vimdirdiff %(commit)^ bind generic dd >git difftool -d -t vimdirdiff %(commit)^..%(commit) bind generic dgu >git difftool -d -t guidiff bind generic dgs >git difftool -d -t guidiff --staged bind generic dgh >git difftool -d -t guidiff %(commit)^ bind generic dgd >git difftool -d -t guidiff %(commit)^..%(commit) bind generic dvu >git difftool -d -t vimdirdiff_view bind generic dvs >git difftool -d -t vimdirdiff_view --staged bind generic dvh >git difftool -d -t vimdirdiff_view %(commit)^ bind generic dvd >git difftool -d -t vimdirdiff_view %(commit)^..%(commit) bind generic dvgu >git difftool -d -t guidiff_view bind generic dvgs >git difftool -d -t guidiff_view --staged bind generic dvgh >git difftool -d -t guidiff_view %(commit)^ bind generic dvgd >git difftool -d -t guidiff_view %(commit)^..%(commit) [[Git]]のように vimdirdiffを定義しておくと、 dd で差分表示にvimdirdiffを使える。 また「!」ではなく「>」を使うと、コマンド終了後の「Press Enter to Continue」を非表示にできる。 !!!その他 !!外部コマンドを実行する :!コマンド 例 :!ls とか {{category2 ツール,開発}}