mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-16 19:44:10 +01:00
Version 0.61803399 (first commit)
This commit is contained in:
8
after/plugin/global_snips.vim
Normal file
8
after/plugin/global_snips.vim
Normal file
@@ -0,0 +1,8 @@
|
||||
if !exists('g:loaded_snips') || exists('s:did_snips')
|
||||
fini
|
||||
en
|
||||
let s:did_snips = 1
|
||||
|
||||
" (c) holds no legal value ;)
|
||||
exe 'GlobalSnip c) '.(&enc[:2] == 'utf' ? '©' : '(c)').' Copyright `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2}'
|
||||
exe 'GlobalSnip date `strftime("%Y-%m-%d")`'
|
||||
13
after/plugin/snipMate.vim
Normal file
13
after/plugin/snipMate.vim
Normal file
@@ -0,0 +1,13 @@
|
||||
" These are the mappings for snipMate.vim. Putting it here ensures that it
|
||||
" will be mapped after other plugins such as supertab.vim.
|
||||
if exists('s:did_snips_mappings') || &cp || version < 700
|
||||
fini
|
||||
en
|
||||
let s:did_snips_mappings = 1
|
||||
|
||||
ino <tab> <c-r>=ExpandSnippet()<cr>
|
||||
snor <tab> <esc>i<right><c-r>=ExpandSnippet()<cr>
|
||||
snor <bs> b<bs>
|
||||
snor ' b<bs>'
|
||||
snor <right> <esc>a
|
||||
snor <left> <esc>bi
|
||||
Reference in New Issue
Block a user