diff options
-rw-r--r-- | autoload/grappele.vim | 5 | ||||
-rw-r--r-- | plugin/grappele.vim | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/autoload/grappele.vim b/autoload/grappele.vim index 7d7c660..8a599b9 100644 --- a/autoload/grappele.vim +++ b/autoload/grappele.vim @@ -1,5 +1,6 @@ function! grappele#Grappele(line) let l:current_buffer = 0 + let s:line = a:line let l:column_position = 0 let l:column_offset = 0 @@ -15,3 +16,7 @@ function! grappele#Grappele(line) \ ]) endif endfunction + +function! grappele#Recall() + call grappele#Grappele(s:line) +endfunction diff --git a/plugin/grappele.vim b/plugin/grappele.vim index a4fd3fa..a86c02a 100644 --- a/plugin/grappele.vim +++ b/plugin/grappele.vim @@ -5,7 +5,12 @@ let g:loaded_grappele = 1 nnoremap <silent> <Plug>Grappele :<c-u>call grappele#Grappele(v:count)<cr> +nnoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall()<cr> if !hasmapto('<Plug>Grappele') || !maparg('G', 'n') nmap G <Plug>Grappele endif + +if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'n') + nmap gG <Plug>GrappeleRecall +endif |