From d78ea12ba8f912faa659b5d4f8d339a3ee36e8e0 Mon Sep 17 00:00:00 2001 From: h-east Date: Sat, 15 Mar 2025 18:50:01 +0900 Subject: [PATCH 1/3] Update filetype.{txt,jax} --- doc/filetype.jax | 22 ++++++++++++++++++++-- en/filetype.txt | 23 +++++++++++++++++++++-- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/doc/filetype.jax b/doc/filetype.jax index 7c55b680d..5dbb19957 100644 --- a/doc/filetype.jax +++ b/doc/filetype.jax @@ -1,4 +1,4 @@ -*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Mar 10 +*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Mar 15 VIMリファレンスマニュアル by Bram Moolenaar @@ -631,6 +631,24 @@ GIT COMMIT *ft-gitcommit-plugin* ンドが提供されている。このコマンドを実行すると、その引数をつけて "git diff --cached" が実行される。 +GIT REBASE *ft-gitrebase-plugin* + +gitrebase ファイルタイプは、対話型の `git rebase` を支援するために、以下のバッ +ファローカルなコマンドを定義する: > + + :Drop " このコミットを破棄する + :Edit " このコミットの編集をやめる + :Fixup " 前のコミットにまとめる (ただし、メッセージは破棄する) + :Pick " このコミットを選択する (カーソルはオン) + :Reword " このコミットを選択するが、コミットメッセージを変更する + :Squash " このコミットを前のコミットにまとめる + +さらに、以下のコマンドを使用して異なる選択肢を切り替えることができる: > + + :Cycle " 前のコマンドを切り替える +< +`:Cycle` コマンドは、CTRL-A キーと CTRL-X キーにもマップされる。詳細については +`git-rebase --help` を参照。 GO *ft-go-plugin* @@ -764,7 +782,7 @@ MAIL *ft-mail-plugin* 位置からファイル末端までのテキストを引用する。これは全ての行に "> " が 挿入されることを意味している。 -MAN *ft-man-plugin* *:Man* *:ManReload* *man.vim* +MAN *ft-man-plugin* *:Man* *:ManReload* *man.vim* このプラグインはマニュアルページを洗練された方法で表示する。ユーザーマニュアル の詳細な情報は |find-manpage| も参照のこと。 diff --git a/en/filetype.txt b/en/filetype.txt index 8a7f0c538..20bf39597 100644 --- a/en/filetype.txt +++ b/en/filetype.txt @@ -1,4 +1,4 @@ -*filetype.txt* For Vim version 9.1. Last change: 2025 Mar 10 +*filetype.txt* For Vim version 9.1. Last change: 2025 Mar 15 VIM REFERENCE MANUAL by Bram Moolenaar @@ -640,6 +640,25 @@ One command, :DiffGitCached, is provided to show a diff of the current commit in the preview window. It is equivalent to calling "git diff --cached" plus any arguments given to the command. +GIT REBASE *ft-gitrebase-plugin* + +The gitrebase filetype defines the following buffer-local commands, to help +with interactive `git rebase`: > + + :Drop " to discard this commit + :Edit " to stop for editing this commit + :Fixup " to squash (but discard the message) into the previous one + :Pick " to pick this commit (the cursor is on) + :Reword " to pick this commit, but change the commit message + :Squash " to squash this commit into the previous one + +In addition, the following command can be used to cycle between the different +possibilities: > + + :Cycle " to cycle between the previous commands +< +The `:Cycle` command is also mapped to the CTRL-A and CTRL-X keys. +For details, see `git-rebase --help`. GO *ft-go-plugin* @@ -776,7 +795,7 @@ Local mappings: to the end of the file in Normal mode. This means "> " is inserted in each line. -MAN *ft-man-plugin* *:Man* *:ManReload* *man.vim* +MAN *ft-man-plugin* *:Man* *:ManReload* *man.vim* This plugin displays a manual page in a nice way. See |find-manpage| in the user manual for more information. From add17d9c4aefea98c064ee2b4cc83930b420ead2 Mon Sep 17 00:00:00 2001 From: h_east Date: Thu, 20 Mar 2025 23:20:37 +0900 Subject: [PATCH 2/3] Update doc/filetype.jax Co-authored-by: mityu --- doc/filetype.jax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/filetype.jax b/doc/filetype.jax index 5dbb19957..a7f71bdea 100644 --- a/doc/filetype.jax +++ b/doc/filetype.jax @@ -639,7 +639,7 @@ gitrebase ファイルタイプは、対話型の `git rebase` を支援する :Drop " このコミットを破棄する :Edit " このコミットの編集をやめる :Fixup " 前のコミットにまとめる (ただし、メッセージは破棄する) - :Pick " このコミットを選択する (カーソルはオン) + :Pick " このコミットを選択する (カーソルはオン) :Reword " このコミットを選択するが、コミットメッセージを変更する :Squash " このコミットを前のコミットにまとめる From 45af1b5361b46233b807fe785c00850ffef37176 Mon Sep 17 00:00:00 2001 From: h_east Date: Thu, 20 Mar 2025 23:22:47 +0900 Subject: [PATCH 3/3] Update doc/filetype.jax Co-authored-by: mityu --- doc/filetype.jax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/filetype.jax b/doc/filetype.jax index a7f71bdea..a3b5e24d2 100644 --- a/doc/filetype.jax +++ b/doc/filetype.jax @@ -647,8 +647,8 @@ gitrebase ファイルタイプは、対話型の `git rebase` を支援する :Cycle " 前のコマンドを切り替える < -`:Cycle` コマンドは、CTRL-A キーと CTRL-X キーにもマップされる。詳細については -`git-rebase --help` を参照。 +`:Cycle` コマンドは、CTRL-A キーと CTRL-X キーにもマップされる。 +詳細については `git-rebase --help` を参照。 GO *ft-go-plugin*