comparison runtime/doc/eval.txt @ 647:19106f131c87 v7.0188

updated for version 7.0188
author vimboss
date Thu, 26 Jan 2006 22:25:15 +0000
parents e4fa26ce8769
children 9032e4668296
comparison
equal deleted inserted replaced
646:eeda7c3124c5 647:19106f131c87
1560 getfontname( [{name}]) String name of font being used 1560 getfontname( [{name}]) String name of font being used
1561 getftime( {fname}) Number last modification time of file 1561 getftime( {fname}) Number last modification time of file
1562 getftype( {fname}) String description of type of file {fname} 1562 getftype( {fname}) String description of type of file {fname}
1563 getline( {lnum}) String line {lnum} of current buffer 1563 getline( {lnum}) String line {lnum} of current buffer
1564 getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer 1564 getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer
1565 getloclist({nr}) List list of location list items
1565 getqflist() List list of quickfix items 1566 getqflist() List list of quickfix items
1566 getreg( [{regname} [, 1]]) String contents of register 1567 getreg( [{regname} [, 1]]) String contents of register
1567 getregtype( [{regname}]) String type of register 1568 getregtype( [{regname}]) String type of register
1568 getwinposx() Number X coord in pixels of GUI Vim window 1569 getwinposx() Number X coord in pixels of GUI Vim window
1569 getwinposy() Number Y coord in pixels of GUI Vim window 1570 getwinposy() Number Y coord in pixels of GUI Vim window
1650 Number send reply string 1651 Number send reply string
1651 serverlist() String get a list of available servers 1652 serverlist() String get a list of available servers
1652 setbufvar( {expr}, {varname}, {val}) set {varname} in buffer {expr} to {val} 1653 setbufvar( {expr}, {varname}, {val}) set {varname} in buffer {expr} to {val}
1653 setcmdpos( {pos}) Number set cursor position in command-line 1654 setcmdpos( {pos}) Number set cursor position in command-line
1654 setline( {lnum}, {line}) Number set line {lnum} to {line} 1655 setline( {lnum}, {line}) Number set line {lnum} to {line}
1655 setqflist( {list}[, {action}]) Number set list of quickfix items using {list} 1656 setloclist( {nr}, {list}[, {action}])
1657 Number modify location list using {list}
1658 setqflist( {list}[, {action}]) Number modify quickfix list using {list}
1656 setreg( {n}, {v}[, {opt}]) Number set register to value and type 1659 setreg( {n}, {v}[, {opt}]) Number set register to value and type
1657 setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val} 1660 setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val}
1658 simplify( {filename}) String simplify filename as much as possible 1661 simplify( {filename}) String simplify filename as much as possible
1659 sort( {list} [, {func}]) List sort {list}, using {func} to compare 1662 sort( {list} [, {func}]) List sort {list}, using {func} to compare
1660 soundfold( {word}) String sound-fold {word} 1663 soundfold( {word}) String sound-fold {word}
2691 Example: > 2694 Example: >
2692 :let start = line('.') 2695 :let start = line('.')
2693 :let end = search("^$") - 1 2696 :let end = search("^$") - 1
2694 :let lines = getline(start, end) 2697 :let lines = getline(start, end)
2695 2698
2699 getloclist({nr}) *getloclist()*
2700 Returns a list with all the entries in the location list for
2701 window {nr}. When {nr} is zero the current window is used.
2702 For a location list window, the displayed location list is
2703 returned. Otherwise, same as getqflist().
2696 2704
2697 getqflist() *getqflist()* 2705 getqflist() *getqflist()*
2698 Returns a list with all the current quickfix errors. Each 2706 Returns a list with all the current quickfix errors. Each
2699 list item is a dictionary with these entries: 2707 list item is a dictionary with these entries:
2700 bufnr number of buffer that has the file name, use 2708 bufnr number of buffer that has the file name, use
3969 :for [n, l] in [[5, 6, 7], ['aaa', 'bbb', 'ccc']] 3977 :for [n, l] in [[5, 6, 7], ['aaa', 'bbb', 'ccc']]
3970 : call setline(n, l) 3978 : call setline(n, l)
3971 :endfor 3979 :endfor
3972 < Note: The '[ and '] marks are not set. 3980 < Note: The '[ and '] marks are not set.
3973 3981
3982 setloclist({nr}, {list} [, {action}]) *setloclist()*
3983 Create or replace or add to the location list for window {nr}.
3984 When {nr} is zero the current window is used. For a location
3985 list window, the displayed location list is modified.
3986 Otherwise, same as setqflist().
3974 3987
3975 setqflist({list} [, {action}]) *setqflist()* 3988 setqflist({list} [, {action}]) *setqflist()*
3976 Creates a quickfix list using the items in {list}. Each item 3989 Create or replace or add to the quickfix list using the items
3977 in {list} is a dictionary. Non-dictionary items in {list} are 3990 in {list}. Each item in {list} is a dictionary.
3978 ignored. Each dictionary item can contain the following 3991 Non-dictionary items in {list} are ignored. Each dictionary
3979 entries: 3992 item can contain the following entries:
3980 3993
3981 filename name of a file 3994 filename name of a file
3982 lnum line number in the file 3995 lnum line number in the file
3983 pattern search pattern used to locate the error 3996 pattern search pattern used to locate the error
3984 col column number 3997 col column number