Mercurial > vim
comparison runtime/doc/eval.txt @ 15418:51b3c36b0523 v8.1.0717
patch 8.1.0717: there is no function for the ":sign jump" command
commit https://github.com/vim/vim/commit/6b7b7190aa9e5c4f51bceaebf9275aa5097cfea1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 11 13:42:41 2019 +0100
patch 8.1.0717: there is no function for the ":sign jump" command
Problem: There is no function for the ":sign jump" command.
Solution: Add the sign_jump() function. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/3780)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Jan 2019 13:45:06 +0100 |
parents | 7444fffa482d |
children | 90c8ff9c19ee |
comparison
equal
deleted
inserted
replaced
15417:50a5ad000845 | 15418:51b3c36b0523 |
---|---|
2410 shiftwidth([{col}]) Number effective value of 'shiftwidth' | 2410 shiftwidth([{col}]) Number effective value of 'shiftwidth' |
2411 sign_define({name} [, {dict}]) Number define or update a sign | 2411 sign_define({name} [, {dict}]) Number define or update a sign |
2412 sign_getdefined([{name}]) List get a list of defined signs | 2412 sign_getdefined([{name}]) List get a list of defined signs |
2413 sign_getplaced([{expr} [, {dict}]]) | 2413 sign_getplaced([{expr} [, {dict}]]) |
2414 List get a list of placed signs | 2414 List get a list of placed signs |
2415 sign_jump({id}, {group}, {expr}) | |
2416 Number jump to a sign | |
2415 sign_place({id}, {group}, {name}, {expr} [, {dict}]) | 2417 sign_place({id}, {group}, {name}, {expr} [, {dict}]) |
2416 Number place a sign | 2418 Number place a sign |
2417 sign_undefine([{name}]) Number undefine a sign | 2419 sign_undefine([{name}]) Number undefine a sign |
2418 sign_unplace({group} [, {dict}]) | 2420 sign_unplace({group} [, {dict}]) |
2419 Number unplace a sign | 2421 Number unplace a sign |
7995 echo sign_getplaced("a.py", {'group' : 'g1', | 7997 echo sign_getplaced("a.py", {'group' : 'g1', |
7996 \ 'id' : 20}) | 7998 \ 'id' : 20}) |
7997 | 7999 |
7998 " Get a List of all the placed signs | 8000 " Get a List of all the placed signs |
7999 echo sign_getplaced() | 8001 echo sign_getplaced() |
8002 < | |
8003 *sign_jump()* | |
8004 sign_jump({id}, {group}, {expr}) | |
8005 Open the buffer {expr} or jump to the window that contains | |
8006 {expr} and position the cursor at sign {id} in group {group}. | |
8007 This is similar to the |:sign-jump| command. | |
8008 | |
8009 For the use of {expr}, see |bufname()|. | |
8010 | |
8011 Returns the line number of the sign. Returns -1 if the | |
8012 arguments are invalid. | |
8013 | |
8014 Example: > | |
8015 " Jump to sign 10 in the current buffer | |
8016 call sign_jump(10, '', '') | |
8000 < | 8017 < |
8001 *sign_place()* | 8018 *sign_place()* |
8002 sign_place({id}, {group}, {name}, {expr} [, {dict}]) | 8019 sign_place({id}, {group}, {name}, {expr} [, {dict}]) |
8003 Place the sign defined as {name} at line {lnum} in file {expr} | 8020 Place the sign defined as {name} at line {lnum} in file {expr} |
8004 and assign {id} and {group} to sign. This is similar to the | 8021 and assign {id} and {group} to sign. This is similar to the |