aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/grappele.vim
blob: 34971dc60a12a4b1658fa244aa41245214922400 (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

		return l:line . 'G'
	endif
endfunction

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