Skip to content

Commit e6289b9

Browse files
authored
Merge pull request #1073 from tsuyoshicho/update/20220410/motion
Update motion.{txt,jax}
2 parents bfbdd5b + 46b2ffc commit e6289b9

File tree

2 files changed

+35
-28
lines changed

2 files changed

+35
-28
lines changed

doc/motion.jax

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
ます。hjkl がどんな動きをするのか覚えるのはキーボードを見ればすぐわかります。j
3333
を下矢印と見立ててみてください。
3434

35-
'virtualedit' オプションをセットすると、文字がない位置や文字の真ん中にもカーソ
36-
ルを移動できるようになります
35+
'virtualedit' オプションをセットすると、文字がない位置や複数桁文字(タブ文字な
36+
ど)の中にもカーソルを移動できるようになります
3737

3838

3939
==============================================================================
@@ -445,37 +445,37 @@ WORD は非空白文字の連続で構成され、ホワイトスペースで区
445445
5. オブジェクト単位で移動 *object-motions*
446446

447447
*(*
448-
( [count] 文後方に|exclusive|
448+
( [count] 文(|sentence|)後方に|exclusive|
449449

450450
*)*
451-
) [count] 文前方に|exclusive|
451+
) [count] 文(|sentence|)前方に|exclusive|
452452

453453
*{*
454-
{ [count] 段落後方に|exclusive|
454+
{ [count] 段落(|paragraph|)後方に|exclusive|
455455

456456
*}*
457-
} [count] 段落前方に|exclusive|
457+
} [count] 段落(|paragraph|)前方に|exclusive|
458458

459459
*]]*
460-
]] [count] セクション前方に、もしくは1桁目が '{' で始まる
461-
次の場所に。オペレータコマンドの後で使われた場合は1桁
462-
目の '}' の下でも止まります。|exclusive|
463-
Note しばしば|exclusive-linewise|になる。
460+
]] [count] セクション(|section|)前方に、もしくは1桁目が
461+
'{' で始まる次の場所に。オペレータコマンドの後で使われ
462+
た場合は1桁目の '}' の下でも止まります。|exclusive|
463+
Note しばしば|exclusive-linewise|になる。
464464

465465
*][*
466-
][ [count] セクション前方に、もしくは1桁目が '}' で始まる
467-
次の場所に|exclusive|
468-
Note しばしば|exclusive-linewise|になる。
466+
][ [count] セクション(|section|)前方に、もしくは1桁目が
467+
'}' で始まる次の場所に|exclusive|
468+
Note しばしば|exclusive-linewise|になる。
469469

470470
*[[*
471-
[[ [count] セクション後方に、もしくは1桁目が '{' で始まる
472-
前の場所に|exclusive|
473-
Note しばしば|exclusive-linewise|になる。
471+
[[ [count] セクション(|section|)後方に、もしくは1桁目が
472+
'{' で始まる前の場所に|exclusive|
473+
Note しばしば|exclusive-linewise|になる。
474474

475475
*[]*
476-
[] [count] セクション後方に、もしくは1桁目が '}' で始まる
477-
前の場所に|exclusive|
478-
Note しばしば|exclusive-linewise|になる。
476+
[] [count] セクション(|section|)後方に、もしくは1桁目が
477+
'}' で始まる前の場所に|exclusive|
478+
Note しばしば|exclusive-linewise|になる。
479479

480480
これらのコマンドは3種類のテキストのまとまりの単位で移動します。
481481

@@ -1063,6 +1063,9 @@ CTRL-I ジャンプリストの中の [count] だけ新しいカーソル位
10631063
ています(インデントは取り除かれ、そして長い行はウィンドウに合うように短くカッ
10641064
トされます)。
10651065

1066+
ジャンプリスト内の現在位置は ">" マーカーで示される。|:filter| を使って
1067+
|:jump| コマンドをフィルタリングした時は表示されないことがある。
1068+
10661069
現在1167行目にいるとして、CTRL-O コマンドを使うとカーソルは1154行目に移動しま
10671070
す。結果として次のようになります:
10681071

en/motion.txt

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ know what the hjkl keys do. The mnemonic value of hjkl is clear from looking
3333
at the keyboard. Think of j as an arrow pointing downwards.
3434

3535
The 'virtualedit' option can be set to make it possible to move the cursor to
36-
positions where there is no character or halfway a character.
36+
positions where there is no character or within a multi-column character (like
37+
a tab).
3738

3839
==============================================================================
3940
1. Motions and operators *operator*
@@ -445,35 +446,35 @@ between Vi and Vim.
445446
5. Text object motions *object-motions*
446447

447448
*(*
448-
( [count] sentences backward. |exclusive| motion.
449+
( [count] |sentence|s backward. |exclusive| motion.
449450

450451
*)*
451-
) [count] sentences forward. |exclusive| motion.
452+
) [count] |sentence|s forward. |exclusive| motion.
452453

453454
*{*
454-
{ [count] paragraphs backward. |exclusive| motion.
455+
{ [count] |paragraph|s backward. |exclusive| motion.
455456

456457
*}*
457-
} [count] paragraphs forward. |exclusive| motion.
458+
} [count] |paragraph|s forward. |exclusive| motion.
458459

459460
*]]*
460-
]] [count] sections forward or to the next '{' in the
461+
]] [count] |section|s forward or to the next '{' in the
461462
first column. When used after an operator, then also
462463
stops below a '}' in the first column. |exclusive|
463464
Note that |exclusive-linewise| often applies.
464465

465466
*][*
466-
][ [count] sections forward or to the next '}' in the
467+
][ [count] |section|s forward or to the next '}' in the
467468
first column. |exclusive|
468469
Note that |exclusive-linewise| often applies.
469470

470471
*[[*
471-
[[ [count] sections backward or to the previous '{' in
472+
[[ [count] |section|s backward or to the previous '{' in
472473
the first column. |exclusive|
473474
Note that |exclusive-linewise| often applies.
474475

475476
*[]*
476-
[] [count] sections backward or to the previous '}' in
477+
[] [count] |section|s backward or to the previous '}' in
477478
the first column. |exclusive|
478479
Note that |exclusive-linewise| often applies.
479480

@@ -1076,6 +1077,9 @@ The "file/text" column shows the file name, or the text at the jump if it is
10761077
in the current file (an indent is removed and a long line is truncated to fit
10771078
in the window).
10781079

1080+
The marker ">" indicates the current position in the jumplist. It may not be
1081+
shown when filtering the |:jump| command using |:filter|
1082+
10791083
You are currently in line 1167. If you then use the CTRL-O command, the
10801084
cursor is put in line 1154. This results in:
10811085

0 commit comments

Comments
 (0)