aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/grappele.vim
blob: c2257d8a4310daa327995111225cb0c2952df694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function! grappele#Grappele(line, ...)
	if a:line !=# 0
		let s:line = a:line
	endif

	return 'G'
endfunction

function! grappele#Recall(mode)
	if exists('s:line')
		let l:line = s:line

		if a:mode ==# 'v'
			let l:line = visualmode() . l:line
		endif

		execute 'normal! ' . l:line . 'G'
	endif
endfunction

function! grappele#ORecall()
	if exists('s:line')
		return ':normal! V' . s:line . "G\<cr>"
	endif
endfunction