Skip to content

Commit ac15cd0

Browse files
authored
Merge pull request #1138 from ryicoh/update-filetype
2 parents e1373cb + 4a48157 commit ac15cd0

File tree

2 files changed

+49
-7
lines changed

2 files changed

+49
-7
lines changed

doc/filetype.jax

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
149149
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
150150
*.bas g:filetype_bas |ft-basic-syntax|
151151
*.cfg g:filetype_cfg
152+
*.cls g:filetype_cls
152153
*.csh g:filetype_csh |ft-csh-syntax|
153154
*.dat g:filetype_dat
154155
*.frm g:filetype_frm |ft-form-syntax|
@@ -162,6 +163,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
162163
*.pp g:filetype_pp |ft-pascal-syntax|
163164
*.prg g:filetype_prg
164165
*.r g:filetype_r
166+
*.sig g:filetype_sig
165167
*.sql g:filetype_sql |ft-sql-syntax|
166168
*.src g:filetype_src
167169
*.sys g:filetype_sys
@@ -544,12 +546,30 @@ fortran_have_tabsについての議論とソース形式の判定法について
544546
|ft-fortran-syntax|を参照。
545547

546548

549+
FREEBASIC *ft-freebasic-plugin*
550+
551+
このプラグインは、FreeBASIC 方言である "fb", "qb", "fblite", "deprecated" の4
552+
つをそれぞれ別の言語として扱うことを目的としている。
553+
554+
方言は、g:freebasic_forcelang、編集中のファイルの #lang ディレクティブ、または
555+
$lang メタコマンドで見つかった最初の名前、または最終的に g:freebasic_lang に設
556+
定される。これらのグローバル変数は、概念的には fbc オプションの -forcelang お
557+
よび -lang に対応している。方言が明示的に指定されていない場合は、"fb" が使用さ
558+
れる。
559+
560+
例えば、方言のデフォルトを "fblite" に設定するが、#lang ディレクティブの上書き
561+
を許可するには、次のコマンドを使用する: >
562+
563+
let g:freebasic_lang = "fblite"
564+
565+
547566
GIT COMMIT *ft-gitcommit-plugin*
548567

549568
現在のコミットの差分をプレビューウィンドウに表示する :DiffGitCached というコマ
550569
ンドが提供されている。このコマンドを実行すると、その引数をつけて "git diff
551570
--cached" が実行される。
552571

572+
553573
GPROF *ft-gprof-plugin*
554574

555575
gprof ファイルタイププラグインは gprof のフラットプロファイルもしくはコールグ
@@ -559,6 +579,7 @@ gprof ファイルタイププラグインは gprof のフラットプロファ
559579
このマッピングを無効にするには: >
560580
let g:no_gprof_maps = 1
561581
582+
562583
メール(MAIL) *ft-mail-plugin*
563584

564585
オプション:
@@ -635,15 +656,15 @@ MANPAGER *manpager.vim*
635656
bash, zsh, ksh もしくは dash の場合、設定ファイル (.bashrc, .zshrc, ...) に以
636657
下の設定を追加する。
637658

638-
export MANPAGER="vim -M +MANPAGER -"
659+
export MANPAGER="vim +MANPAGER --not-a-term -"
639660

640661
(t)csh の場合、設定ファイルに以下の設定を追加する。
641662

642-
setenv MANPAGER "vim -M +MANPAGER -"
663+
setenv MANPAGER "vim +MANPAGER --not-a-term -"
643664

644665
fish の場合、設定ファイルに以下の設定を追加する。
645666

646-
set -x MANPAGER "vim -M +MANPAGER -"
667+
set -x MANPAGER "vim +MANPAGER --not-a-term -"
647668

648669

649670
MARKDOWN *ft-markdown-plugin*

en/filetype.txt

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ variables can be used to overrule the filetype used for certain extensions:
143143
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
144144
*.bas g:filetype_bas |ft-basic-syntax|
145145
*.cfg g:filetype_cfg
146-
*.csh g:filetype_csh |ft-csh-syntax|
146+
*.cls g:filetype_cls
147+
*.csh g:filetype_csh |ft-csh-syntax|
147148
*.dat g:filetype_dat
148149
*.frm g:filetype_frm |ft-form-syntax|
149150
*.fs g:filetype_fs |ft-forth-syntax|
@@ -156,6 +157,7 @@ variables can be used to overrule the filetype used for certain extensions:
156157
*.pp g:filetype_pp |ft-pascal-syntax|
157158
*.prg g:filetype_prg
158159
*.r g:filetype_r
160+
*.sig g:filetype_sig
159161
*.sql g:filetype_sql |ft-sql-syntax|
160162
*.src g:filetype_src
161163
*.sys g:filetype_sys
@@ -554,12 +556,30 @@ For further discussion of fortran_have_tabs and the method used for the
554556
detection of source format see |ft-fortran-syntax|.
555557

556558

559+
FREEBASIC *ft-freebasic-plugin*
560+
561+
This plugin aims to treat the four FreeBASIC dialects, "fb", "qb", "fblite"
562+
and "deprecated", as distinct languages.
563+
564+
The dialect will be set to the first name found in g:freebasic_forcelang, any
565+
#lang directive or $lang metacommand in the file being edited, or finally
566+
g:freebasic_lang. These global variables conceptually map to the fbc options
567+
-forcelang and -lang. If no dialect is explicitly specified "fb" will be
568+
used.
569+
570+
For example, to set the dialect to a default of "fblite" but still allow for
571+
any #lang directive overrides, use the following command: >
572+
573+
let g:freebasic_lang = "fblite"
574+
575+
557576
GIT COMMIT *ft-gitcommit-plugin*
558577

559578
One command, :DiffGitCached, is provided to show a diff of the current commit
560579
in the preview window. It is equivalent to calling "git diff --cached" plus
561580
any arguments given to the command.
562581

582+
563583
GPROF *ft-gprof-plugin*
564584

565585
The gprof filetype plugin defines a mapping <C-]> to jump from a function
@@ -569,6 +589,7 @@ to the details of that function in the call graph.
569589
The mapping can be disabled with: >
570590
let g:no_gprof_maps = 1
571591
592+
572593
MAIL *ft-mail-plugin*
573594

574595
Options:
@@ -642,15 +663,15 @@ manpages and follows linked manpages on hitting CTRL-]).
642663

643664
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
644665

645-
export MANPAGER="vim -M +MANPAGER -"
666+
export MANPAGER="vim +MANPAGER --not-a-term -"
646667

647668
For (t)csh, add to the config file
648669

649-
setenv MANPAGER "vim -M +MANPAGER -"
670+
setenv MANPAGER "vim +MANPAGER --not-a-term -"
650671

651672
For fish, add to the config file
652673

653-
set -x MANPAGER "vim -M +MANPAGER -"
674+
set -x MANPAGER "vim +MANPAGER --not-a-term -"
654675

655676

656677
MARKDOWN *ft-markdown-plugin*

0 commit comments

Comments
 (0)