|
1 |
| -*options.txt* For Vim version 8.1. Last change: 2019 Mar 08 |
| 1 | +*options.txt* For Vim version 8.1. Last change: 2019 Mar 24 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -2538,7 +2538,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
2538 | 2538 | The default value is for C programs. For C++ this value would be
|
2539 | 2539 | useful, to include const type declarations: >
|
2540 | 2540 | ^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\)
|
| 2541 | +< You can also use "\ze" just before the name and continue the pattern |
| 2542 | + to check what is following. E.g. for Javascript, if a function is |
| 2543 | + defined with "func_name = function(args)": > |
| 2544 | + ^\s*\ze\i\+\s*=\s*function( |
| 2545 | +< If the function is defined with "func_name : function() {...": > |
| 2546 | + ^\s*\ze\i\+\s*[:]\s*(*function\s*( |
2541 | 2547 | < When using the ":set" command, you need to double the backslashes!
|
| 2548 | + To avoid that use `:let` with a single quote string: > |
| 2549 | + let &l:define = '^\s*\ze\k\+\s*=\s*function(' |
2542 | 2550 |
|
2543 | 2551 | *'delcombine'* *'deco'* *'nodelcombine'* *'nodeco'*
|
2544 | 2552 | 'delcombine' 'deco' boolean (default off)
|
@@ -7682,7 +7690,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
7682 | 7690 | pages.
|
7683 | 7691 | split If included, split the current window before loading
|
7684 | 7692 | a buffer for a |quickfix| command that display errors.
|
7685 |
| - Otherwise: do not split, use current window. |
| 7693 | + Otherwise: do not split, use current window (when used |
| 7694 | + in the quickfix window: the previously used window or |
| 7695 | + split if there is no other window). |
7686 | 7696 | vsplit Just like "split" but split vertically.
|
7687 | 7697 | newtab Like "split", but open a new tab page. Overrules
|
7688 | 7698 | "split" when both are present.
|
|
0 commit comments