mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-02-23 03:45:45 +01:00
fixed a couple typos and disable the old snippet commands
This commit is contained in:
@@ -16,15 +16,10 @@ let loaded_snips = 1
|
|||||||
if !exists('snips_author') | let snips_author = 'Me' | endif
|
if !exists('snips_author') | let snips_author = 'Me' | endif
|
||||||
|
|
||||||
au FileType objc,cpp,cs let &ft = expand('<amatch>').'.c'
|
au FileType objc,cpp,cs let &ft = expand('<amatch>').'.c'
|
||||||
au FileType xhtml let &ft = expand('<amatch>').'.html'
|
au FileType xhtml let &ft = 'xhtml.html'
|
||||||
au BufRead,BufNewFile *.snippets\= set ft=snippet
|
au BufRead,BufNewFile *.snippets\= set ft=snippet
|
||||||
au FileType snippet setl noet fdm=indent
|
au FileType snippet setl noet fdm=indent
|
||||||
|
|
||||||
" These are just here to avoid errors, for now
|
|
||||||
com! -nargs=+ -bang Snipp
|
|
||||||
com! -nargs=+ -bang GlobalSnip
|
|
||||||
com! -nargs=+ -bang BufferSnip
|
|
||||||
|
|
||||||
let s:snippets = {} | let s:multi_snips = {}
|
let s:snippets = {} | let s:multi_snips = {}
|
||||||
|
|
||||||
if !exists('snippets_dir')
|
if !exists('snippets_dir')
|
||||||
@@ -122,7 +117,7 @@ fun! TriggerSnippet()
|
|||||||
if g:SuperTabMappingForward == "<tab>"
|
if g:SuperTabMappingForward == "<tab>"
|
||||||
let g:SuperTabKey = "\<c-n>"
|
let g:SuperTabKey = "\<c-n>"
|
||||||
elseif g:SuperTabMappingBackward == "<tab>"
|
elseif g:SuperTabMappingBackward == "<tab>"
|
||||||
let g:SuperTabKey = '\<c-p>'
|
let g:SuperTabKey = "\<c-p>"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user