aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2015-09-13 16:00:45 -0400
committerTeddy Wing2015-09-13 16:00:45 -0400
commit59e8032b2b31dc06c60842bbf975effec6820958 (patch)
treec4e57bf359a75628ac7ffab9fe02a29989f4c61c /plugin
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
Diffstat (limited to 'plugin')
-rw-r--r--plugin/grappele.vim11
1 files changed, 11 insertions, 0 deletions
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