aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/uuid_anchor.vim29
1 files changed, 0 insertions, 29 deletions
diff --git a/ftplugin/uuid_anchor.vim b/ftplugin/uuid_anchor.vim
deleted file mode 100644
index 1e5dfdd..0000000
--- a/ftplugin/uuid_anchor.vim
+++ /dev/null
@@ -1,29 +0,0 @@
-" UUID Anchor vim plugin
-" Language: Python (ft=python)
-" Maintainer: VG <vg@devys.org>
-" Version: Vim 7 (may work with lower Vim versions, but not tested)
-" URL: http://git.devys.org/vim-uuid-anchor
-
-" Only do this when not done yet for this buffer
-if exists("g:loaded_uuid_anchor_ftplugin")
- finish
-endif
-let loaded_uuid_anchor_ftplugin = 1
-
-function! CreateAnchorUUID()
-python << EOF
-import vim
-import random
-generated_uuid = '{:08X}'.format(random.randint(0,256**4))
-vim.current.line += generated_uuid
-vim.command(''' normal l"uye ''')
-EOF
-endfunction
-
-" Add mappings, unless the user didn't want this.
-" The default mapping is registered, unless the user remapped it already.
-if !exists("no_plugin_maps") && !exists("no_uuid_anchor_maps")
- if !hasmapto(' CreateAnchorUUID(')
- imap <leader><leader>uuid <C-o>:call CreateAnchorUUID()<CR>
- endif
-endif