Skip to content

Commit 3e08be8

Browse files
authored
Merge pull request #1876 from h-east/update-change
Update change.{txt,jax}
2 parents 24bd952 + 3a20c4f commit 3e08be8

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

doc/change.jax

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 9.1. Last change: 2024 Nov 12
1+
*change.txt* For Vim バージョン 9.1. Last change: 2024 Dec 15
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1468,18 +1468,17 @@ gww "gw" と同様にして現在行を整形する。
14681468
れ、かつそのスクリプト名は <filetype>format.vim とされるべきなので、|autoload|
14691469
スクリプトを使用することは理にかなっている。
14701470

1471-
例えば、Vim と共に配布され $VIMRUNTIME ディレクトリに配置されている XML ファイ
1472-
ルタイププラグインは、オプション 'formatexpr' を以下のように設定する: >
1473-
1471+
例えば、Vim と共に配布され $VIMRUNTIME/ftplugin ディレクトリに配置されている
1472+
XML ファイルタイププラグインは、オプション 'formatexpr' を以下のように設定する:
1473+
>
14741474
setlocal formatexpr=xmlformat#Format()
14751475
1476-
これは、xmlformat#Format() を定義している対応したスクリプトが以下のディレクト
1477-
リで見つかることを意味している:
1478-
`$VIMRUNTIME/autoload/xmlformat.vim`
1476+
これは、xmlformat#Format() を定義している対応したスクリプトがファイル
1477+
`$VIMRUNTIME/autoload/xmlformat.vim` で見つかることを意味している。
14791478

14801479
以下は、選択されたテキストから末尾の空白を取り除くスクリプトの例である。これを
1481-
autoload ディレクトリに置くこと。例、~/.vim/autoload/format.vim: >
1482-
1480+
autoload ディレクトリに置くこと。例、~/.vim/autoload/format.vim:
1481+
>vim
14831482
func! format#Format()
14841483
" 明示的な gq コマンドの場合だけ再整形する
14851484
if mode() != 'n'
@@ -1512,8 +1511,8 @@ Note: この関数は、挿入モードから呼ばれた場合に明示的に
15121511

15131512
*right-justify*
15141513
テキストを右揃えするコマンドは、Vimには存在しない。"par" 等の外部コマンド (例:
1515-
"!}par" で段落の最後までを整形する) を実行したり、'formatprg' に "par" を指定
1516-
することで、これを行うことができる。
1514+
`:.,}!par` で段落の最後までを整形する) を実行したり、'formatprg' に "par" を指
1515+
定することで、これを行うことができる。
15171516

15181517
*format-comments*
15191518
コメント整形の概要がユーザーマニュアルの |30.6| にある。
@@ -1575,7 +1574,7 @@ Vimは特殊な方法で自動的にコメントを挿入・整形できる。Vi
15751574
べきインデントが存在しているときのみ機能する。
15761575

15771576
コメント文字列にフラグ 'f', 's', 'm', 'e' のいずれも指定しないとき、Vimはコメ
1578-
ント文字列を行の最初に繰り返すと仮定する。フラグ欄は空になる
1577+
ント文字列を行の最初に繰り返すと仮定する。{flags} 欄は空になる
15791578

15801579
{string} の前や後にある余白は、{string} の一部とされる。コメント文字列に必要で
15811580
ない限り、余白を前や後に付けないこと。

en/change.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 9.1. Last change: 2024 Nov 12
1+
*change.txt* For Vim version 9.1. Last change: 2024 Dec 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1512,18 +1512,17 @@ since formatting is highly dependent on the type of file. It makes
15121512
sense to use an |autoload| script, so the corresponding script is only loaded
15131513
when actually needed and the script should be called <filetype>format.vim.
15141514

1515-
For example, the XML filetype plugin distributed with Vim in the $VIMRUNTIME
1516-
directory, sets the 'formatexpr' option to: >
1515+
For example, the XML filetype plugin distributed with Vim in the
1516+
$VIMRUNTIME/ftplugin directory, sets the 'formatexpr' option to: >
15171517
15181518
setlocal formatexpr=xmlformat#Format()
15191519
15201520
That means, you will find the corresponding script, defining the
1521-
xmlformat#Format() function, in the directory:
1522-
`$VIMRUNTIME/autoload/xmlformat.vim`
1521+
xmlformat#Format() function, in the file `$VIMRUNTIME/autoload/xmlformat.vim`
15231522

15241523
Here is an example script that removes trailing whitespace from the selected
1525-
text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
1526-
1524+
text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim:
1525+
>vim
15271526
func! format#Format()
15281527
" only reformat on explicit gq command
15291528
if mode() != 'n'
@@ -1556,7 +1555,7 @@ debugging it helps to set the 'debug' option.
15561555

15571556
*right-justify*
15581557
There is no command in Vim to right justify text. You can do it with
1559-
an external command, like "par" (e.g.: "!}par" to format until the end of the
1558+
an external command, like "par" (e.g.: `:.,}!par` to format until the end of the
15601559
paragraph) or set 'formatprg' to "par".
15611560

15621561
*format-comments*
@@ -1622,7 +1621,7 @@ type of comment string. A part consists of:
16221621
some indent for the start or end part that can be removed.
16231622

16241623
When a string has none of the 'f', 's', 'm' or 'e' flags, Vim assumes the
1625-
comment string repeats at the start of each line. The flags field may be
1624+
comment string repeats at the start of each line. The {flags} field may be
16261625
empty.
16271626

16281627
Any blank space in the text before and after the {string} is part of the

0 commit comments

Comments
 (0)