Mercurial > vim
comparison runtime/doc/eval.txt @ 277:fe16c18c24a7
updated for version 7.0074
author | vimboss |
---|---|
date | Fri, 20 May 2005 21:25:31 +0000 |
parents | a20218704019 |
children | 33d9c918b8ab |
comparison
equal
deleted
inserted
replaced
276:b15976488069 | 277:fe16c18c24a7 |
---|---|
1580 Number send reply string | 1580 Number send reply string |
1581 serverlist() String get a list of available servers | 1581 serverlist() String get a list of available servers |
1582 setbufvar( {expr}, {varname}, {val}) set {varname} in buffer {expr} to {val} | 1582 setbufvar( {expr}, {varname}, {val}) set {varname} in buffer {expr} to {val} |
1583 setcmdpos( {pos}) Number set cursor position in command-line | 1583 setcmdpos( {pos}) Number set cursor position in command-line |
1584 setline( {lnum}, {line}) Number set line {lnum} to {line} | 1584 setline( {lnum}, {line}) Number set line {lnum} to {line} |
1585 setqflist( {list} ) Number set list of quickfix items using {list} | 1585 setqflist( {list}[, {action}]) Number set list of quickfix items using {list} |
1586 setreg( {n}, {v}[, {opt}]) Number set register to value and type | 1586 setreg( {n}, {v}[, {opt}]) Number set register to value and type |
1587 setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val} | 1587 setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val} |
1588 simplify( {filename}) String simplify filename as much as possible | 1588 simplify( {filename}) String simplify filename as much as possible |
1589 sort( {list} [, {func}]) List sort {list}, using {func} to compare | 1589 sort( {list} [, {func}]) List sort {list}, using {func} to compare |
1590 split( {expr} [, {pat}]) List make List from {pat} separated {expr} | 1590 split( {expr} [, {pat}]) List make List from {pat} separated {expr} |
3602 because {lnum} is invalid) 1 is returned. Example: > | 3602 because {lnum} is invalid) 1 is returned. Example: > |
3603 :call setline(5, strftime("%c")) | 3603 :call setline(5, strftime("%c")) |
3604 < Note: The '[ and '] marks are not set. | 3604 < Note: The '[ and '] marks are not set. |
3605 | 3605 |
3606 | 3606 |
3607 setqflist({list}) *setqflist()* | 3607 setqflist({list} [, {action}]) *setqflist()* |
3608 Creates a quickfix list using the items in {list}. Each item | 3608 Creates a quickfix list using the items in {list}. Each item |
3609 in {list} is a dictionary. Non-dictionary items in {list} are | 3609 in {list} is a dictionary. Non-dictionary items in {list} are |
3610 ignored. Each dictionary item can contain the following | 3610 ignored. Each dictionary item can contain the following |
3611 entries: | 3611 entries: |
3612 | 3612 |
3626 If the "filename" entry is not present or neither the "lnum" | 3626 If the "filename" entry is not present or neither the "lnum" |
3627 or "pattern" entries are present, then the item will not be | 3627 or "pattern" entries are present, then the item will not be |
3628 handled as an error line. | 3628 handled as an error line. |
3629 If both "pattern" and "lnum" are present then "pattern" will | 3629 If both "pattern" and "lnum" are present then "pattern" will |
3630 be used. | 3630 be used. |
3631 | |
3632 If {action} is set to 'a', then the items from {list} are | |
3633 added to the existing quickfix list. If there is no existing | |
3634 list, then a new list is created. If {action} is set to 'r', | |
3635 then the items from the current quickfix list are replaced | |
3636 with the items from {list}. If {action} is not present or is | |
3637 set to ' ', then a new list is created. | |
3631 | 3638 |
3632 Returns zero for success, -1 for failure. | 3639 Returns zero for success, -1 for failure. |
3633 | 3640 |
3634 This function can be used to create a quickfix list | 3641 This function can be used to create a quickfix list |
3635 independent of the 'errorformat' setting. Use a command like | 3642 independent of the 'errorformat' setting. Use a command like |