mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-22 05:47:59 +01:00
fixed annoying default mappings that clash with select mode
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
" These are the mappings for snipMate.vim. Putting it here ensures that it
|
" These are the mappings for snipMate.vim. Putting it here ensures that it
|
||||||
" will be mapped after other plugins such as supertab.vim.
|
" will be mapped after other plugins such as supertab.vim.
|
||||||
if exists('s:did_snips_mappings') || &cp || version < 700
|
if !exists('loaded_snips') || exists('s:did_snips_mappings')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let s:did_snips_mappings = 1
|
let s:did_snips_mappings = 1
|
||||||
@@ -8,10 +8,19 @@ let s:did_snips_mappings = 1
|
|||||||
ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
|
ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
|
||||||
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
|
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
|
||||||
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
|
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
|
||||||
|
|
||||||
|
" The default mappings for these are annoying & sometimes break snipMate.
|
||||||
|
" You can change them back if you want, I've put them here for convenience.
|
||||||
snor <bs> b<bs>
|
snor <bs> b<bs>
|
||||||
snor ' b<bs>'
|
|
||||||
snor <right> <esc>a
|
snor <right> <esc>a
|
||||||
snor <left> <esc>bi
|
snor <left> <esc>bi
|
||||||
|
snor ' b<bs>'
|
||||||
|
snor ` b<bs>`
|
||||||
|
snor % b<bs>%
|
||||||
|
snor U b<bs>U
|
||||||
|
snor ^ b<bs>^
|
||||||
|
snor \ b<bs>\
|
||||||
|
snor <c-x> b<bs><c-x>
|
||||||
|
|
||||||
" By default load snippets in snippets_dir
|
" By default load snippets in snippets_dir
|
||||||
if empty(snippets_dir)
|
if empty(snippets_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user