aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/grappele.vim
blob: c82d0c54956b55302d4904bf3a34f1472326379e (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
function! grappele#Grappele(line)
	let l:current_buffer = 0
	let s:line = a:line
	let l:column_position = 0
	let l:column_offset = 0
	
	normal! m'
	
	if a:line ==# 0
		" Go to the end of the buffer
		$
	else
		call setpos('.', [
			\ l:current_buffer,
			\ a:line,
			\ l:column_position,
			\ l:column_offset
		\ ])
	endif
endfunction

function! grappele#Recall()
	call grappele#Grappele(s:line)
endfunction