Mercurial > vim
comparison runtime/doc/eval.txt @ 20615:8eed1e9389bb v8.2.0861
patch 8.2.0861: cannot easily get all the current marks
Commit: https://github.com/vim/vim/commit/cfb4b47de08e4437c692d382067dc1692cd83c23
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 31 15:41:57 2020 +0200
patch 8.2.0861: cannot easily get all the current marks
Problem: Cannot easily get all the current marks.
Solution: Add getmarklist(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6032)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 May 2020 15:45:04 +0200 |
parents | c2570baa2e4c |
children | 8bce783af0cb |
comparison
equal
deleted
inserted
replaced
20614:78caf677340d | 20615:8eed1e9389bb |
---|---|
2495 getjumplist([{winnr} [, {tabnr}]]) | 2495 getjumplist([{winnr} [, {tabnr}]]) |
2496 List list of jump list items | 2496 List list of jump list items |
2497 getline({lnum}) String line {lnum} of current buffer | 2497 getline({lnum}) String line {lnum} of current buffer |
2498 getline({lnum}, {end}) List lines {lnum} to {end} of current buffer | 2498 getline({lnum}, {end}) List lines {lnum} to {end} of current buffer |
2499 getloclist({nr} [, {what}]) List list of location list items | 2499 getloclist({nr} [, {what}]) List list of location list items |
2500 getmarklist([{expr}]) List list of global/local marks | |
2500 getmatches([{win}]) List list of current matches | 2501 getmatches([{win}]) List list of current matches |
2501 getmousepos() Dict last known mouse position | 2502 getmousepos() Dict last known mouse position |
2502 getpid() Number process ID of Vim | 2503 getpid() Number process ID of Vim |
2503 getpos({expr}) List position of cursor, mark, etc. | 2504 getpos({expr}) List position of cursor, mark, etc. |
2504 getqflist([{what}]) List list of quickfix items | 2505 getqflist([{what}]) List list of quickfix items |
5363 applicable only when called from a | 5364 applicable only when called from a |
5364 location list window. See | 5365 location list window. See |
5365 |location-list-file-window| for more | 5366 |location-list-file-window| for more |
5366 details. | 5367 details. |
5367 | 5368 |
5369 getmarklist([{expr}] *getmarklist()* | |
5370 Without the {expr} argument returns a |List| with information | |
5371 about all the global marks. |mark| | |
5372 | |
5373 If the optional {expr} argument is specified, returns the | |
5374 local marks defined in buffer {expr}. For the use of {expr}, | |
5375 see |bufname()|. | |
5376 | |
5377 Each item in the retuned List is a |Dict| with the following: | |
5378 name - name of the mark prefixed by "'" | |
5379 pos - a |List| with the position of the mark: | |
5380 [bufnum, lnum, col, off] | |
5381 Refer to |getpos()| for more information. | |
5382 file - file name | |
5383 | |
5384 Refer to |getpos()| for getting information about a specific | |
5385 mark. | |
5386 | |
5387 | |
5368 getmatches([{win}]) *getmatches()* | 5388 getmatches([{win}]) *getmatches()* |
5369 Returns a |List| with all matches previously defined for the | 5389 Returns a |List| with all matches previously defined for the |
5370 current window by |matchadd()| and the |:match| commands. | 5390 current window by |matchadd()| and the |:match| commands. |
5371 |getmatches()| is useful in combination with |setmatches()|, | 5391 |getmatches()| is useful in combination with |setmatches()|, |
5372 as |setmatches()| can restore a list of matches saved by | 5392 as |setmatches()| can restore a list of matches saved by |