diff options
author | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-20 13:12:30 +0200 |
---|---|---|
committer | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-26 19:32:32 +0200 |
commit | fa07cc215d6c7e86e3b4b7a83d856c017a655933 (patch) | |
tree | 74956d62a3d6a88a7b9b0dae02e6794992d9edaa /runtime | |
parent | e09f3baed8abc5fb821fb9b6226ad232d8e2f4c7 (diff) | |
download | rneovim-fa07cc215d6c7e86e3b4b7a83d856c017a655933.tar.gz rneovim-fa07cc215d6c7e86e3b4b7a83d856c017a655933.tar.bz2 rneovim-fa07cc215d6c7e86e3b4b7a83d856c017a655933.zip |
vim-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 vim/vim#3780)
https://github.com/vim/vim/commit/6b7b7190aa9e5c4f51bceaebf9275aa5097cfea1
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 17 | ||||
-rw-r--r-- | runtime/doc/sign.txt | 8 | ||||
-rw-r--r-- | runtime/doc/usr_41.txt | 1 |
3 files changed, 23 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 77df15bf41..f6e8cdf762 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2293,6 +2293,8 @@ sign_define({name} [, {dict}]) Number define or update a sign sign_getdefined([{name}]) List get a list of defined signs sign_getplaced([{expr} [, {dict}]]) List get a list of placed signs +sign_jump({id}, {group}, {expr}) + Number jump to a sign sign_place({id}, {group}, {name}, {expr} [, {dict}]) Number place a sign sign_undefine([{name}]) Number undefine a sign @@ -7485,6 +7487,21 @@ sign_getplaced([{expr} [, {dict}]]) *sign_getplaced()* " Get a List of all the placed signs echo sign_getplaced() < + *sign_jump()* +sign_jump({id}, {group}, {expr}) + Open the buffer {expr} or jump to the window that contains + {expr} and position the cursor at sign {id} in group {group}. + This is similar to the |:sign-jump| command. + + For the use of {expr}, see |bufname()|. + + Returns the line number of the sign. Returns -1 if the + arguments are invalid. + + Example: > + " Jump to sign 10 in the current buffer + call sign_jump(10, '', '') +< *sign_place()* sign_place({id}, {group}, {name}, {expr} [, {dict}]) Place the sign defined as {name} at line {lnum} in file {expr} diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt index cbc3a19399..cf7e01bcea 100644 --- a/runtime/doc/sign.txt +++ b/runtime/doc/sign.txt @@ -256,13 +256,13 @@ See |sign_unplace()| for the equivalent Vim script function. all the files it appears in. :sign unplace * - Remove placed signs in the global group from all the files. + Remove all placed signs in the global group from all the files. :sign unplace * group={group} - Remove placed signs in group {group} from all the files. + Remove all placed signs in group {group} from all the files. :sign unplace * group=* - Remove placed signs in all the groups from all the files. + Remove all placed signs in all the groups from all the files. :sign unplace Remove a placed sign at the cursor position. If multiple signs @@ -309,6 +309,8 @@ See |sign_getplaced()| for the equivalent Vim script function. JUMPING TO A SIGN *:sign-jump* *E157* +See |sign_jump()| for the equivalent Vim script function. + :sign jump {id} file={fname} Open the file {fname} or jump to the window that contains {fname} and position the cursor at sign {id}. diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt index cfda4fdb31..b8fd6cdf7b 100644 --- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -920,6 +920,7 @@ Signs: *sign-functions* sign_define() define or update a sign sign_getdefined() get a list of defined signs sign_getplaced() get a list of placed signs + sign_jump() jump to a sign sign_place() place a sign sign_undefine() undefine a sign sign_unplace() unplace a sign |