Skip to content

Commit 9ceccb8

Browse files
committed
Update filetype from Vim 8.0 to 8.1
1 parent 110e299 commit 9ceccb8

File tree

2 files changed

+82
-56
lines changed

2 files changed

+82
-56
lines changed

doc/filetype.jax

Lines changed: 42 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim バージョン 8.0. Last change: 2017 Jan 04
1+
*filetype.txt* For Vim バージョン 8.1. Last change: 2018 Apr 18
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -44,7 +44,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
4444
い時には、ファイルの内容を検出するために$VIMRUNTIME/scripts.vimが使用
4545
される。
4646
GUIで使用しているとき、またはGUIを開始しようとしているときには、
47-
menu.vimも読み込まれる。これを避けるには |'go-M'| を参照。
47+
|menu.vim| も読み込まれる。これを避けるには |'go-M'| を参照。
4848

4949
独自のファイルタイプを追加するには、下の|new-filetype|を参照。あるファイルタイ
5050
プについてのヘルプを検索するには、ファイルタイプ名の前に "ft-" をつけ、さらに
@@ -324,6 +324,10 @@ OSによる「形式」を利用するには自動実行コマンドの検出パ
324324

325325
最後の1つは$VIMRUNTIMEが展開されたものであることに注意。
326326

327+
Note: プラグインマネージャや |packages| を使っている場合、たくさんのディレクト
328+
リが 'runtimepath' に追加される。これらのプラグインはそれぞれに自分用のディレ
329+
クトリが必要であり、~/.vim/plugin に直接置いてはいけない。
330+
327331
プラグインが読み込まれていないらしい場合はどうすれば良いのか? Vim起動時に|-V|
328332
引数を使用すれば何が起こっているか知ることができる: >
329333
@@ -357,12 +361,12 @@ OSによる「形式」を利用するには自動実行コマンドの検出パ
357361
独自のキーマップはプラグインが読み込まれる (つまりその形式のファイルが読み
358362
込まれる) 前に定義する必要がある。そうすればプラグインはデフォルトキーマッ
359363
ピングのインストールを行わない。
360-
364+
*no_mail_maps*
361365
3. 特定のファイル形式についてキーマップを無効化するならば、そのファイル形式名
362366
を含むある変数を設定する。ファイル形式 "mail" のキーマップを無効にするには
363367
次のようにする: >
364368
:let no_mail_maps = 1
365-
369+
< *no_plugin_maps*
366370
4. ファイル形式による全てのキーマップを無効化するには次の変数を設定する: >
367371
:let no_plugin_maps = 1
368372
<
@@ -595,34 +599,18 @@ MANPAGER *manpager.vim*
595599
:Man コマンドを使うと、Vim をマンページにできる(その構文はマンページをハイライ
596600
ト表示し、CTRL-] でヒットしたリンク先のマンページをたどる)。
597601

598-
動作する環境:
599-
600-
- Linux
601-
- Mac OS
602-
- FreeBSD
603-
- Cygwin
604-
- Win 10 under Bash
605-
606-
未テスト:
607-
608-
- Amiga OS
609-
- BeOS
610-
- OS/2
602+
bash, zsh, ksh もしくは dash の場合、設定ファイル (.bashrc, .zshrc, ...) に以
603+
下の設定を追加する。
611604

612-
設定ファイル(.bashrc, .zshrc, ...)に bash, zsh, ksh, または dash を追加するには、
605+
export MANPAGER="vim -M +MANPAGER -"
613606

614-
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
607+
(t)csh の場合、設定ファイルに以下の設定を追加する。
615608

616-
設定ファイルに (t)csh を追加するには、
609+
setenv MANPAGER "vim -M +MANPAGER -"
617610

618-
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
611+
fish の場合、設定ファイルに以下の設定を追加する。
619612

620-
設定ファイルに fish を追加するには、
621-
622-
set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
623-
624-
もし man が Linux や Mac OS 上で最も一般的な実装である man-db のような $MAN_PN
625-
環境変数を設定していれば、上の "env MAN_PN = 1" の部分は余計である。
613+
set -x MANPAGER "vim -M +MANPAGER -"
626614

627615
PDF *ft-pdf-plugin*
628616

@@ -655,6 +643,13 @@ RPM SPEC *ft-spec-plugin*
655643
このプラグインに関する説明は非常に多いので、別のファイル |pi_spec.txt| に記述
656644
してある。
657645

646+
647+
RUST *ft-rust*
648+
649+
このプラグインに関する説明は非常に多いので、別のファイル |ft_rust.txt| に記述
650+
してある。
651+
652+
658653
SQL *ft-sql*
659654

660655
このプラグインについての解説は長くなるので、別のファイルに分割してある:
@@ -675,4 +670,24 @@ tex (LaTeX)。そうでなければ context か tex かを決定するために
675670
let g:tex_flavor = "latex"
676671
現在のところこれ以外のフォーマットは識別されない。
677672

673+
674+
VIM *ft-vim-plugin*
675+
676+
Vim ファイルタイププラグインは、[[ および ]] で関数の先頭および末尾に移動する
677+
ためのマッピングを定義する。コメントの周辺には ]" および [" で移動する。
678+
679+
このマッピングは以下のようにして無効化することができる: >
680+
let g:no_vim_maps = 1
681+
682+
683+
ZIMBU *ft-zimbu-plugin*
684+
685+
Zimbu ファイルタイププラグインは、[[ および ]] で関数の先頭および末尾に移動す
686+
るためのマッピングを定義する。
687+
688+
このマッピングは以下のようにして無効化することができる: >
689+
let g:no_zimbu_maps = 1
690+
<
691+
692+
678693
vim:tw=78:ts=8:ft=help:norl:

en/filetype.txt

Lines changed: 40 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 8.0. Last change: 2017 Jan 04
1+
*filetype.txt* For Vim version 8.1. Last change: 2018 Apr 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -43,7 +43,7 @@ Detail: The ":filetype on" command will load one of these files:
4343
BufNewFile and BufRead events. If the file type is not found by the
4444
name, the file $VIMRUNTIME/scripts.vim is used to detect it from the
4545
contents of the file.
46-
When the GUI is running or will start soon, the menu.vim script is
46+
When the GUI is running or will start soon, the |menu.vim| script is
4747
also sourced. See |'go-M'| about avoiding that.
4848

4949
To add your own file types, see |new-filetype| below. To search for help on a
@@ -319,6 +319,10 @@ then Vim will load all plugins in these directories and below:
319319

320320
Note that the last one is the value of $VIMRUNTIME which has been expanded.
321321

322+
Note that when using a plugin manager or |packages| many directories will be
323+
added to 'runtimepath'. These plugins earch require their own directory,
324+
don't put them directly in ~/.vim/plugin.
325+
322326
What if it looks like your plugin is not being loaded? You can find out what
323327
happens when Vim starts up by using the |-V| argument: >
324328
@@ -353,12 +357,12 @@ define yourself. There are a few ways to avoid this:
353357
You need to define your own mapping before the plugin is loaded (before
354358
editing a file of that type). The plugin will then skip installing the
355359
default mapping.
356-
360+
*no_mail_maps*
357361
3. Disable defining mappings for a specific filetype by setting a variable,
358362
which contains the name of the filetype. For the "mail" filetype this
359363
would be: >
360364
:let no_mail_maps = 1
361-
365+
< *no_plugin_maps*
362366
4. Disable defining mappings for all filetypes by setting a variable: >
363367
:let no_plugin_maps = 1
364368
<
@@ -602,35 +606,17 @@ MANPAGER *manpager.vim*
602606
The :Man command allows you to turn Vim into a manpager (that syntax highlights
603607
manpages and follows linked manpages on hitting CTRL-]).
604608

605-
Works on:
606-
607-
- Linux
608-
- Mac OS
609-
- FreeBSD
610-
- Cygwin
611-
- Win 10 under Bash
612-
613-
Untested:
614-
615-
- Amiga OS
616-
- BeOS
617-
- OS/2
609+
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
618610

619-
For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...)
611+
export MANPAGER="vim -M +MANPAGER -"
620612

621-
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
613+
For (t)csh, add to the config file
622614

623-
For (t)csh by adding to the config file
615+
setenv MANPAGER "vim -M +MANPAGER -"
624616

625-
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
617+
For fish, add to the config file
626618

627-
For fish by adding to the config file
628-
629-
set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
630-
631-
If man sets the $MAN_PN environment variable, like man-db, the most common
632-
implementation on Linux and Mac OS, then the "env MAN_PN=1 " part above is
633-
superfluous.
619+
set -x MANPAGER "vim -M +MANPAGER -"
634620

635621
PDF *ft-pdf-plugin*
636622

@@ -653,7 +639,7 @@ By default the following options are set, in accordance with PEP8: >
653639
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
654640
655641
To disable this behaviour, set the following variable in your vimrc: >
656-
642+
657643
let g:python_recommended_style = 0
658644
659645
@@ -663,6 +649,12 @@ Since the text for this plugin is rather long it has been put in a separate
663649
file: |pi_spec.txt|.
664650

665651

652+
RUST *ft-rust*
653+
654+
Since the text for this plugin is rather long it has been put in a separate
655+
file: |ft_rust.txt|.
656+
657+
666658
SQL *ft-sql*
667659

668660
Since the text for this plugin is rather long it has been put in a separate
@@ -684,4 +676,23 @@ You can change the default by defining the variable g:tex_flavor to the format
684676
Currently no other formats are recognized.
685677

686678

679+
VIM *ft-vim-plugin*
680+
681+
The Vim filetype plugin defines mappings to move to the start and end of
682+
functions with [[ and ]]. Move around comments with ]" and [".
683+
684+
The mappings can be disabled with: >
685+
let g:no_vim_maps = 1
686+
687+
688+
ZIMBU *ft-zimbu-plugin*
689+
690+
The Zimbu filetype plugin defines mappings to move to the start and end of
691+
functions with [[ and ]].
692+
693+
The mappings can be disabled with: >
694+
let g:no_zimbu_maps = 1
695+
<
696+
697+
687698
vim:tw=78:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)