Skip to content

Commit a4d3db0

Browse files
authored
Merge pull request #1482 from mityu/update-usr_51
Update usr_51.{txt,jax}
2 parents 6ed0b49 + 4f71f39 commit a4d3db0

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

doc/usr_51.jax

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_51.txt* For Vim バージョン 9.1. Last change: 2022 Jun 03
1+
*usr_51.txt* For Vim バージョン 9.1. Last change: 2022 Apr 04
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -654,12 +654,8 @@ exists("*s:Func") 関数が定義済かどうかをチェックする。
654654
*:CompilerSet*
655655
二つ目は、":compiler!" が使われたときは ":set" を使い、":compiler" が使われた
656656
ときは ":setlocal" を使う仕組みです。Vim はそのために ":CompilerSet" という
657-
ユーザーコマンドを定義します。古い Vim はそれを定義しないので、プラグインの中
658-
で定義してください。例: >
657+
ユーザーコマンドを定義します。例: >
659658
660-
if exists(":CompilerSet") != 2
661-
command -nargs=* CompilerSet setlocal <args>
662-
endif
663659
CompilerSet errorformat& " use the dfault 'errorformat'
664660
CompilerSet makeprg=nmake
665661

en/usr_51.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_51.txt* For Vim version 9.1. Last change: 2022 Jun 03
1+
*usr_51.txt* For Vim version 9.1. Last change: 2024 Apr 04
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -649,13 +649,9 @@ When you write a compiler file and put it in your personal runtime directory
649649
make the default file skip the settings.
650650
*:CompilerSet*
651651
The second mechanism is to use ":set" for ":compiler!" and ":setlocal" for
652-
":compiler". Vim defines the ":CompilerSet" user command for this. However,
653-
older Vim versions don't, thus your plugin should define it then. This is an
654-
example: >
652+
":compiler". Vim defines the ":CompilerSet" user command for this. This is
653+
an example: >
655654
656-
if exists(":CompilerSet") != 2
657-
command -nargs=* CompilerSet setlocal <args>
658-
endif
659655
CompilerSet errorformat& " use the default 'errorformat'
660656
CompilerSet makeprg=nmake
661657

0 commit comments

Comments
 (0)