|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2015 Jul 21 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2015 Sep 19 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1747,7 +1747,7 @@ bufexists( {expr}) Number TRUE if buffer {expr} exists |
1747 | 1747 | buflisted( {expr}) Number TRUE if buffer {expr} is listed |
1748 | 1748 | bufloaded( {expr}) Number TRUE if buffer {expr} is loaded |
1749 | 1749 | bufname( {expr}) String Name of the buffer {expr} |
1750 | | -bufnr( {expr}) Number Number of the buffer {expr} |
| 1750 | +bufnr( {expr} [, {create}]) Number Number of the buffer {expr} |
1751 | 1751 | bufwinnr( {expr}) Number window number of buffer {expr} |
1752 | 1752 | byte2line( {byte}) Number line number at byte count {byte} |
1753 | 1753 | byteidx( {expr}, {nr}) Number byte index of {nr}'th char in {expr} |
@@ -5419,7 +5419,7 @@ setbufvar({expr}, {varname}, {val}) *setbufvar()* |
5419 | 5419 | :call setbufvar("todo", "myvar", "foobar") |
5420 | 5420 | < This function is not available in the |sandbox|. |
5421 | 5421 |
|
5422 | | -setcharsearch() *setcharsearch()* |
| 5422 | +setcharsearch({dict}) *setcharsearch()* |
5423 | 5423 | Set the current character search information to {dict}, |
5424 | 5424 | which contains one or more of the following entries: |
5425 | 5425 |
|
@@ -5861,7 +5861,8 @@ split({expr} [, {pattern} [, {keepempty}]]) *split()* |
5861 | 5861 | :let words = split(getline('.'), '\W\+') |
5862 | 5862 | < To split a string in individual characters: > |
5863 | 5863 | :for c in split(mystring, '\zs') |
5864 | | -< If you want to keep the separator you can also use '\zs': > |
| 5864 | +< If you want to keep the separator you can also use '\zs' at |
| 5865 | + the end of the pattern: > |
5865 | 5866 | :echo split('abc:def:ghi', ':\zs') |
5866 | 5867 | < ['abc:', 'def:', 'ghi'] ~ |
5867 | 5868 | Splitting a table where the first element can be empty: > |
@@ -6121,6 +6122,9 @@ synID({lnum}, {col}, {trans}) *synID()* |
6121 | 6122 |
|
6122 | 6123 | {col} is 1 for the leftmost column, {lnum} is 1 for the first |
6123 | 6124 | line. 'synmaxcol' applies, in a longer line zero is returned. |
| 6125 | + Note that when the position is after the last character, |
| 6126 | + that's where the cursor can be in Insert mode, synID() returns |
| 6127 | + zero. |
6124 | 6128 |
|
6125 | 6129 | When {trans} is non-zero, transparent items are reduced to the |
6126 | 6130 | item that they reveal. This is useful when wanting to know |
|
0 commit comments