diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-05-24 23:29:26 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-05-24 23:29:26 +0200 |
| commit | 50189c2b54ad4a2b16ef1192799913dfe0e57667 (patch) | |
| tree | 80f364f21a21682e559d06c30df1fb12ffe4d62a /autoload/utils.vim | |
| parent | 0362d66448d336f56340f4526548d2e80d2f2cc6 (diff) | |
| download | dotfiles-50189c2b54ad4a2b16ef1192799913dfe0e57667.tar.gz dotfiles-50189c2b54ad4a2b16ef1192799913dfe0e57667.zip | |
Add GotoJump script
Diffstat (limited to 'autoload/utils.vim')
| -rw-r--r-- | autoload/utils.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim index 03fdb07..f1270bf 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -130,3 +130,21 @@ endfunction "------------------------------------------------- + +" Jump List +function! utils#GotoJump() + jumps + let j = input("Please select your jump: ") + if j != '' + let pattern = '\v\c^\+' + if j =~ pattern + let j = substitute(j, pattern, '', 'g') + execute "normal " . j . "\<c-i>" + else + execute "normal " . j . "\<c-o>" + endif + endif +endfunction + + +"------------------------------------------------- |
