Delete InsertLeave event
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"=============================================================================
|
||||
" FILE: init.vim
|
||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||
" Last Modified: 21 Nov 2013.
|
||||
" Last Modified: 25 Dec 2013.
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
@@ -84,7 +84,6 @@ function! s:initialize_others() "{{{
|
||||
\ call neosnippet#variables#set_snippets({})
|
||||
autocmd BufEnter *
|
||||
\ call neosnippet#mappings#_clear_select_mode_mappings()
|
||||
autocmd InsertLeave * call neosnippet#view#_on_insert_leave()
|
||||
augroup END"}}}
|
||||
|
||||
augroup neosnippet
|
||||
|
||||
@@ -166,22 +166,6 @@ function! neosnippet#view#_jump(cur_text, col) "{{{
|
||||
return s:search_outof_range(a:col)
|
||||
endfunction"}}}
|
||||
|
||||
function! neosnippet#view#_on_insert_leave() "{{{
|
||||
let expand_stack = neosnippet#variables#expand_stack()
|
||||
|
||||
" Get patterns and count.
|
||||
if empty(expand_stack)
|
||||
\ || neosnippet#variables#current_neosnippet().trigger
|
||||
return
|
||||
endif
|
||||
|
||||
if expand_stack[-1].begin_line != expand_stack[-1].end_line
|
||||
return
|
||||
endif
|
||||
|
||||
call neosnippet#commands#_clear_markers()
|
||||
endfunction"}}}
|
||||
|
||||
function! s:indent_snippet(begin, end) "{{{
|
||||
if a:begin > a:end
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user