Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 13 additions & 3 deletions doc/options.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim バージョン 8.1. Last change: 2019 Mar 08
*options.txt* For Vim バージョン 8.1. Last change: 2019 Mar 24


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -2582,8 +2582,16 @@ Note 1番目の形式では、行全体がオプション指定に使われる
既定値はCプログラム用である。C++プログラムには、定数定義を加えて次のよ
うにすると便利だろう。 >
^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\)
< 名前の直前に "\ze" を使用し、何が続くか確認するためのパターンを続ける
こともできる。Javascript の例、関数が "func_name = function(args)" で
定義されている場合: >
^\s*\ze\i\+\s*=\s*function(
< 関数が "func_name : function() {..." で定義されている場合: >
^\s*\ze\i\+\s*[:]\s*(*function\s*(
< ":set" で設定するときは、'\' の数を2倍にする必要がある!

これを回避するには、`:let` とシングルクォートの文字列を使用する: >
let &l:define = '^\s*\ze\k\+\s*=\s*function('
<
*'delcombine'* *'deco'* *'nodelcombine'* *'nodeco'*
'delcombine' 'deco' 切替 (既定ではオフ)
グローバル
Expand Down Expand Up @@ -7780,7 +7788,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
示するときに、バッファを読み込む前にカレントウィンドウ
を分割する。
含まれていないときは、分割はされない。カレントウィンド
ウが使われる。
ウが使われる (quickfix ウィンドウで使用されたとき: 前
に使われていたウィンドウ、もしくは他のウィンドウがない
場合は分割する)。
vsplit "split" と同様だが、垂直に分割する。
newtab "split" と同様だが、新しいタブページを開く。"split" と
両方指定された場合はこちらが優先される。
Expand Down
14 changes: 12 additions & 2 deletions en/options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim version 8.1. Last change: 2019 Mar 08
*options.txt* For Vim version 8.1. Last change: 2019 Mar 24


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -2538,7 +2538,15 @@ A jump table for the options with a short description can be found at |Q_op|.
The default value is for C programs. For C++ this value would be
useful, to include const type declarations: >
^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\)
< You can also use "\ze" just before the name and continue the pattern
to check what is following. E.g. for Javascript, if a function is
defined with "func_name = function(args)": >
^\s*\ze\i\+\s*=\s*function(
< If the function is defined with "func_name : function() {...": >
^\s*\ze\i\+\s*[:]\s*(*function\s*(
< When using the ":set" command, you need to double the backslashes!
To avoid that use `:let` with a single quote string: >
let &l:define = '^\s*\ze\k\+\s*=\s*function('

*'delcombine'* *'deco'* *'nodelcombine'* *'nodeco'*
'delcombine' 'deco' boolean (default off)
Expand Down Expand Up @@ -7682,7 +7690,9 @@ A jump table for the options with a short description can be found at |Q_op|.
pages.
split If included, split the current window before loading
a buffer for a |quickfix| command that display errors.
Otherwise: do not split, use current window.
Otherwise: do not split, use current window (when used
in the quickfix window: the previously used window or
split if there is no other window).
vsplit Just like "split" but split vertically.
newtab Like "split", but open a new tab page. Overrules
"split" when both are present.
Expand Down