aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/grappele.vim
blob: 84766bec5a961c4e4e58c49d2f2738a68c55001b (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
26
27
function! grappele#Grappele(line, ...)
	let l: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