aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-09-13 16:00:45 -0400
committerTeddy Wing2015-09-13 16:00:45 -0400
commit59e8032b2b31dc06c60842bbf975effec6820958 (patch)
treec4e57bf359a75628ac7ffab9fe02a29989f4c61c
downloadvim-grappele-59e8032b2b31dc06c60842bbf975effec6820958.tar.bz2
Initial commit. Project setup.
* Basic setup for the plugin: * `loaded` global * Create mapping definition based on style from tpope and System Copy * Create dummy function in autoload
-rw-r--r--autoload/grappele.vim2
-rw-r--r--plugin/grappele.vim11
2 files changed, 13 insertions, 0 deletions
diff --git a/autoload/grappele.vim b/autoload/grappele.vim
new file mode 100644
index 0000000..d2401a4
--- /dev/null
+++ b/autoload/grappele.vim
@@ -0,0 +1,2 @@
+function! grappele#Grappele()
+endfunction
diff --git a/plugin/grappele.vim b/plugin/grappele.vim
new file mode 100644
index 0000000..11666e2
--- /dev/null
+++ b/plugin/grappele.vim
@@ -0,0 +1,11 @@
+if exists('g:loaded_grappele')
+ finish
+endif
+let g:loaded_grappele = 1
+
+
+nnoremap G <Plug>Grappele :<c-u>call grappele#Grappele()
+
+if !hasmapto('<Plug>Grappele') || !maparg('G', 'n')
+ nmap G <Plug>Grappele
+endif