aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/grappele.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/grappele.vim')
-rw-r--r--autoload/grappele.vim17
1 files changed, 16 insertions, 1 deletions
diff --git a/autoload/grappele.vim b/autoload/grappele.vim
index d2401a4..7d7c660 100644
--- a/autoload/grappele.vim
+++ b/autoload/grappele.vim
@@ -1,2 +1,17 @@
-function! grappele#Grappele()
+function! grappele#Grappele(line)
+ let l:current_buffer = 0
+ let l:column_position = 0
+ let l:column_offset = 0
+
+ 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