Mercurial > vim
comparison runtime/doc/eval.txt @ 13246:dd3b2ecf91f6 v8.0.1497
patch 8.0.1497: getting the jump list requires parsing the output of :jumps
commit https://github.com/vim/vim/commit/4f50588ba336e7f086a72c53f5688c2494fc34b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 10 21:06:32 2018 +0100
patch 8.0.1497: getting the jump list requires parsing the output of :jumps
Problem: Getting the jump list requires parsing the output of :jumps.
Solution: Add getjumplist(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/2609)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 10 Feb 2018 21:15:05 +0100 |
parents | 167a030448fa |
children | abaebba89fd4 |
comparison
equal
deleted
inserted
replaced
13245:09783cb4b108 | 13246:dd3b2ecf91f6 |
---|---|
1 *eval.txt* For Vim version 8.0. Last change: 2018 Feb 09 | 1 *eval.txt* For Vim version 8.0. Last change: 2018 Feb 10 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
2165 getfontname([{name}]) String name of font being used | 2165 getfontname([{name}]) String name of font being used |
2166 getfperm({fname}) String file permissions of file {fname} | 2166 getfperm({fname}) String file permissions of file {fname} |
2167 getfsize({fname}) Number size in bytes of file {fname} | 2167 getfsize({fname}) Number size in bytes of file {fname} |
2168 getftime({fname}) Number last modification time of file | 2168 getftime({fname}) Number last modification time of file |
2169 getftype({fname}) String description of type of file {fname} | 2169 getftype({fname}) String description of type of file {fname} |
2170 getjumplist([{winnr} [, {tabnr}]]) | |
2171 List list of jump list items | |
2170 getline({lnum}) String line {lnum} of current buffer | 2172 getline({lnum}) String line {lnum} of current buffer |
2171 getline({lnum}, {end}) List lines {lnum} to {end} of current buffer | 2173 getline({lnum}, {end}) List lines {lnum} to {end} of current buffer |
2172 getloclist({nr} [, {what}]) List list of location list items | 2174 getloclist({nr} [, {what}]) List list of location list items |
2173 getmatches() List list of current matches | 2175 getmatches() List list of current matches |
2174 getpid() Number process ID of Vim | 2176 getpid() Number process ID of Vim |
4558 < Note that a type such as "link" will only be returned on | 4560 < Note that a type such as "link" will only be returned on |
4559 systems that support it. On some systems only "dir" and | 4561 systems that support it. On some systems only "dir" and |
4560 "file" are returned. On MS-Windows a symbolic link to a | 4562 "file" are returned. On MS-Windows a symbolic link to a |
4561 directory returns "dir" instead of "link". | 4563 directory returns "dir" instead of "link". |
4562 | 4564 |
4565 *getjumplist()* | |
4566 getjumplist([{winnr} [, {tabnr}]]) | |
4567 Returns the |jumplist| for the specified window. | |
4568 | |
4569 Without arguments use the current window. | |
4570 With {winnr} only use this window in the current tab page. | |
4571 {winnr} can also be a |window-ID|. | |
4572 With {winnr} and {tabnr} use the window in the specified tab | |
4573 page. | |
4574 | |
4575 The returned list contains two entries: a list with the jump | |
4576 locations and the last used jump position number in the list. | |
4577 Each entry in the jump location list is a dictionary with | |
4578 the following entries: | |
4579 bufnr buffer number | |
4580 col column number | |
4581 coladd column offset for 'virtualedit' | |
4582 filename filename if available | |
4583 lnum line number | |
4584 | |
4563 *getline()* | 4585 *getline()* |
4564 getline({lnum} [, {end}]) | 4586 getline({lnum} [, {end}]) |
4565 Without {end} the result is a String, which is line {lnum} | 4587 Without {end} the result is a String, which is line {lnum} |
4566 from the current buffer. Example: > | 4588 from the current buffer. Example: > |
4567 getline(1) | 4589 getline(1) |