Skip to content

Update {channel,filetype,motion,quickref,quickfix,windows}.{txt,jax} #987

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 6 commits into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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
12 changes: 6 additions & 6 deletions doc/channel.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*channel.txt* For Vim バージョン 8.2. Last change: 2020 Oct 17
*channel.txt* For Vim バージョン 8.2. Last change: 2021 Nov 28


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -101,7 +101,7 @@ send を呼ぶたびに毎回コールバックを指定する代わりに、チ
ることもできます: >
call ch_close(channel)
let channel = ch_open('localhost:8765', {'callback': "MyHandler"})
call ch_sendexpr(channel, 'hello!')
call ch_sendexpr(channel, 'hello channel!')

チャネルを試してみると、何が起こっているのかを知ることができます。あなたは Vim
にログファイルに行を書くよう指示することができます: >
Expand All @@ -114,7 +114,7 @@ send を呼ぶたびに毎回コールバックを指定する代わりに、チ
チャネルを開くには次のようにします: >
let channel = ch_open({address} [, {options}])
if ch_status(channel) == "open"
" use the channel
" チャネルを使う

|ch_status()| を使用して、チャネルを開くことができたかどうかを確認します。

Expand All @@ -131,9 +131,9 @@ IPv6 アドレスを使う時、角カッコでくくった中に納めてくだ
"nl" - NL 文字で終わるメッセージを使う
"raw" - raw メッセージを使う
*channel-callback* *E921*
"callback" メッセージ受信時に他のハンドラーで扱われない時に呼ばれます。こ
れはチャネルのハンドルと、受信したメッセージの 2 つの引数を取
ります。例: >
"callback" メッセージ受信時に他のハンドラーで扱われない時に呼ばれます
(例えば、ID が0の JSON メッセージ)。これはチャネルのハンドル
と、受信したメッセージの 2 つの引数を取ります。例: >
func Handle(channel, msg)
echo '受信した: ' . a:msg
endfunc
Expand Down
11 changes: 6 additions & 5 deletions doc/filetype.jax
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,19 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを

ファイル名 変数 ~
*.asa g:filetype_asa |ft-aspvbs-syntax| |ft-aspperl-syntax|
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
*.asm g:asmsyntax |ft-asm-syntax|
*.prg g:filetype_prg
*.pl g:filetype_pl
*.inc g:filetype_inc
*.w g:filetype_w |ft-cweb-syntax|
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
*.fs g:filetype_fs |ft-forth-syntax|
*.i g:filetype_i |ft-progress-syntax|
*.inc g:filetype_inc
*.m g:filetype_m |ft-mathematica-syntax|
*.p g:filetype_p |ft-pascal-syntax|
*.pl g:filetype_pl
*.pp g:filetype_pp |ft-pascal-syntax|
*.prg g:filetype_prg
*.sh g:bash_is_sh |ft-sh-syntax|
*.tex g:tex_flavor |ft-tex-plugin|
*.w g:filetype_w |ft-cweb-syntax|

*filetype-ignore*
特定のファイルが検査されないようにするには、g:ft_ignore_pat 変数を使う。この変
Expand Down
6 changes: 5 additions & 1 deletion 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 Jun 13
*motion.txt* For Vim バージョン 8.2. Last change: 2021 Dec 04


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -388,6 +388,8 @@ w [count] word 前方に。|exclusive|

<C-Right> or *<C-Right>* *W*
W [count] WORD 前方に。|exclusive|
もし <C-Right> が動かないなら、|arrow_modifiers| を確
認のこと。

*e*
e [count] word 前方の単語の終わりに。|inclusive|
Expand All @@ -402,6 +404,8 @@ b [count] word 後方に。|exclusive|

<C-Left> or *<C-Left>* *B*
B [count] WORD 後方に。|exclusive|
もし <C-Left> が動かないなら、|arrow_modifiers| を確
認のこと。

*ge*
ge [count] word 後方の単語の最後に。|inclusive|
Expand Down
8 changes: 4 additions & 4 deletions doc/quickfix.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*quickfix.txt* For Vim バージョン 8.2. Last change: 2021 May 22
*quickfix.txt* For Vim バージョン 8.2. Last change: 2021 Dec 03


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -803,9 +803,9 @@ locationリストウィンドウからファイルを選択すると、以下の
*:chistory* *:chi*
:[count]chi[story] エラーリストの一覧を表示する。現在のリストは ">" でマー
クされる。出力は以下の様になる:
error list 1 of 3; 43 errors ~
> error list 2 of 3; 0 errors ~
error list 3 of 3; 15 errors ~
error list 1 of 3; 43 errors :make ~
> error list 2 of 3; 0 errors :helpgrep tag ~
error list 3 of 3; 15 errors :grep ex_help *.c ~

[count] が与えられると、count番目のquickfixリストがカ
レントリストになる。例: >
Expand Down
1 change: 1 addition & 0 deletions doc/quickref.jax
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@
'buflisted' 'bl' バッファリストにバッファを表示するかどうか
'buftype' 'bt' バッファのタイプ
'casemap' 'cmp' 文字の大小の変換方法を決める
'cdhome' 'cdh' ":cd" でディレクトリをホームディレクトリに変える
'cdpath' 'cd' ":cd" コマンドで検索するディレクトリ
'cedit' コマンドラインウィンドウを開くためのキー
'charconvert' 'ccv' 文字コードの変換に使用する式
Expand Down
4 changes: 3 additions & 1 deletion doc/windows.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*windows.txt* For Vim バージョン 8.2. Last change: 2021 Sep 09
*windows.txt* For Vim バージョン 8.2. Last change: 2021 Nov 29


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -1226,6 +1226,8 @@ CTRL-W g } *CTRL-W_g}*
ば、そのままカレントバッファが編集される。 [!]については
|:buffer-!| を参照。これはバッファリストにないバッファも
'buflisted' フラグを設定することなく編集する。
ここではシングルクォート付きの記法は使えない。
`:buf 12'345'` は 12'345 をバッファ名として使う。
|+cmd| も参照。

:[N]b[uffer][!] [+cmd] {bufname} *{bufname}*
Expand Down
9 changes: 5 additions & 4 deletions en/channel.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*channel.txt* For Vim version 8.2. Last change: 2020 Oct 17
*channel.txt* For Vim version 8.2. Last change: 2021 Nov 28


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -101,7 +101,7 @@ Instead of giving a callback with every send call, it can also be specified
when opening the channel: >
call ch_close(channel)
let channel = ch_open('localhost:8765', {'callback': "MyHandler"})
call ch_sendexpr(channel, 'hello!')
call ch_sendexpr(channel, 'hello channel!')

When trying out channels it's useful to see what is going on. You can tell
Vim to write lines in log file: >
Expand Down Expand Up @@ -132,8 +132,9 @@ When using an IPv6 address, enclose it within square brackets. E.g.,
"raw" - Use raw messages
*channel-callback* *E921*
"callback" A function that is called when a message is received that is
not handled otherwise. It gets two arguments: the channel
and the received message. Example: >
not handled otherwise (e.g. a JSON message with ID zero). It
gets two arguments: the channel and the received message.
Example: >
func Handle(channel, msg)
echo 'Received: ' . a:msg
endfunc
Expand Down
11 changes: 6 additions & 5 deletions en/filetype.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,19 @@ can be used to overrule the filetype used for certain extensions:

file name variable ~
*.asa g:filetype_asa |ft-aspvbs-syntax| |ft-aspperl-syntax|
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
*.asm g:asmsyntax |ft-asm-syntax|
*.prg g:filetype_prg
*.pl g:filetype_pl
*.inc g:filetype_inc
*.w g:filetype_w |ft-cweb-syntax|
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
*.fs g:filetype_fs |ft-forth-syntax|
*.i g:filetype_i |ft-progress-syntax|
*.inc g:filetype_inc
*.m g:filetype_m |ft-mathematica-syntax|
*.p g:filetype_p |ft-pascal-syntax|
*.pl g:filetype_pl
*.pp g:filetype_pp |ft-pascal-syntax|
*.prg g:filetype_prg
*.sh g:bash_is_sh |ft-sh-syntax|
*.tex g:tex_flavor |ft-tex-plugin|
*.w g:filetype_w |ft-cweb-syntax|

*filetype-ignore*
To avoid that certain files are being inspected, the g:ft_ignore_pat variable
Expand Down
6 changes: 5 additions & 1 deletion 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 Jun 13
*motion.txt* For Vim version 8.2. Last change: 2021 Dec 04


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -386,6 +386,8 @@ w [count] words forward. |exclusive| motion.

<C-Right> or *<C-Right>* *W*
W [count] WORDS forward. |exclusive| motion.
If <C-Right> does not work, check out
|arrow_modifiers|.

*e*
e Forward to the end of word [count] |inclusive|.
Expand All @@ -400,6 +402,8 @@ b [count] words backward. |exclusive| motion.

<C-Left> or *<C-Left>* *B*
B [count] WORDS backward. |exclusive| motion.
If <C-Left> does not work, check out
|arrow_modifiers|.

*ge*
ge Backward to the end of word [count] |inclusive|.
Expand Down
8 changes: 4 additions & 4 deletions en/quickfix.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*quickfix.txt* For Vim version 8.2. Last change: 2021 May 22
*quickfix.txt* For Vim version 8.2. Last change: 2021 Dec 03


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -856,9 +856,9 @@ lists. They set one of the existing error lists as the current one.
*:chistory* *:chi*
:[count]chi[story] Show the list of error lists. The current list is
marked with ">". The output looks like:
error list 1 of 3; 43 errors ~
> error list 2 of 3; 0 errors ~
error list 3 of 3; 15 errors ~
error list 1 of 3; 43 errors :make ~
> error list 2 of 3; 0 errors :helpgrep tag ~
error list 3 of 3; 15 errors :grep ex_help *.c ~

When [count] is given, then the count'th quickfix
list is made the current list. Example: >
Expand Down
1 change: 1 addition & 0 deletions en/quickref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ Short explanation of each option: *option-list*
'buflisted' 'bl' whether the buffer shows up in the buffer list
'buftype' 'bt' special type of buffer
'casemap' 'cmp' specifies how case of letters is changed
'cdhome' 'cdh' change directory to the home directory by ":cd"
'cdpath' 'cd' list of directories searched with ":cd"
'cedit' key used to open the command-line window
'charconvert' 'ccv' expression for character encoding conversion
Expand Down
4 changes: 3 additions & 1 deletion en/windows.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*windows.txt* For Vim version 8.2. Last change: 2021 Sep 09
*windows.txt* For Vim version 8.2. Last change: 2021 Nov 29


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1203,6 +1203,8 @@ list of buffers. |unlisted-buffer|
the current buffer remains being edited. See |:buffer-!| for
[!]. This will also edit a buffer that is not in the buffer
list, without setting the 'buflisted' flag.
The notation with single quotes does not work here,
`:buf 12'345'` uses 12'345 as a buffer name.
Also see |+cmd|.

:[N]b[uffer][!] [+cmd] {bufname} *{bufname}*
Expand Down