Skip to content

Update motion.{txt,jax} #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions doc/motion.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*motion.txt* For Vim バージョン 8.2. Last change: 2021 Dec 04
*motion.txt* For Vim バージョン 8.2. Last change: 2021 Dec 13


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -1026,12 +1026,10 @@ Note: 矩形ビジュアルモードを使っているのでない限り、テ
*CTRL-O*
CTRL-O ジャンプリストの中の [count] だけ古いカーソル位置に移
動します(移動コマンドではありません)。
{|+jumplist| 機能なしのときは使用できない}

<Tab> or *CTRL-I* *<Tab>*
CTRL-I ジャンプリストの中の [count] だけ新しいカーソル位置に
移動します(移動コマンドではありません)。
{|+jumplist| 機能なしのときは使用できない}

NOTE: GUI および |modifyOtherKeys| をサポートする端末
では、CTRL-I が <Tab> より前にマッピングされるという条
Expand All @@ -1041,18 +1039,15 @@ CTRL-I ジャンプリストの中の [count] だけ新しいカーソル位
*:ju* *:jumps*
:ju[mps] ジャンプリストを表示させます(移動コマンドではありませ
ん)。
{|+jumplist| 機能なしのときは使用できない}

*:cle* *:clearjumps*
:cle[arjumps] 現在のウィンドウのジャンプリストを空にします。
{|+jumplist| 機能なしのときは使用できない}

*jumplist*
ジャンプはジャンプリストに覚えておかれ、CTRL-O と CTRL-I コマンドで前の古い位
置に移動し、そして再び新しい位置に戻ることができます。このようにしてジャンプリ
ストの中を上下に移動することができます。ジャンプリストはそれぞれのウィンドウで
分かれており、エントリの最大の数は50に固定されています。
{|+jumplist| 機能なしのときは使用できない}

例えば、3回ジャンプを行った後ではジャンプリストは次のようになっています:

Expand Down Expand Up @@ -1127,13 +1122,11 @@ g; 変更リスト中の [count] 個前の位置に移動します。
箇所へ移動します。
それ以上古い変更が無ければエラーメッセージが表示されま
す。(移動コマンドではありません)
{|+jumplist| 機能なしのときは使用できない}

*g,* *E663*
g, 変更リスト中の [count] 個後の位置に移動します。
|g;| の逆方向で、あとは同様です。
(移動コマンドではありません)
{|+jumplist| 機能なしのときは使用できない}

count を使うと、可能な限り前/後にジャンプできます。つまり、"999g;" とすると
履歴に残っている最初の変更箇所へジャンプできます。変更リストのエントリの数は固
Expand Down
9 changes: 1 addition & 8 deletions en/motion.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*motion.txt* For Vim version 8.2. Last change: 2021 Dec 04
*motion.txt* For Vim version 8.2. Last change: 2021 Dec 13


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1038,12 +1038,10 @@ commands that start editing a new file.
*CTRL-O*
CTRL-O Go to [count] Older cursor position in jump list
(not a motion command).
{not available without the |+jumplist| feature}

<Tab> or *CTRL-I* *<Tab>*
CTRL-I Go to [count] newer cursor position in jump list
(not a motion command).
{not available without the |+jumplist| feature}

NOTE: In the GUI and in a terminal supporting
|modifyOtherKeys|, CTRL-I can be mapped separately
Expand All @@ -1053,18 +1051,15 @@ CTRL-I Go to [count] newer cursor position in jump list

*:ju* *:jumps*
:ju[mps] Print the jump list (not a motion command).
{not available without the |+jumplist| feature}

*:cle* *:clearjumps*
:cle[arjumps] Clear the jump list of the current window.
{not available without the |+jumplist| feature}

*jumplist*
Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you
can go to cursor positions before older jumps, and back again. Thus you can
move up and down the list. There is a separate jump list for each window.
The maximum number of entries is fixed at 100.
{not available without the |+jumplist| feature}

For example, after three jump commands you have this jump list:

Expand Down Expand Up @@ -1141,13 +1136,11 @@ g; Go to [count] older position in change list.
positions go to the oldest change.
If there is no older change an error message is given.
(not a motion command)
{not available without the |+jumplist| feature}

*g,* *E663*
g, Go to [count] newer cursor position in change list.
Just like |g;| but in the opposite direction.
(not a motion command)
{not available without the |+jumplist| feature}

When using a count you jump as far back or forward as possible. Thus you can
use "999g;" to go to the first change for which the position is still
Expand Down