- Improved g:neosnippet#disable_select_mode_mappings behavior.

This commit is contained in:
Shougo Matsushita 2013-07-03 12:42:26 +09:00
parent 80b5e2f8cb
commit be90bb4f93

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: neosnippet.vim " FILE: neosnippet.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 27 Jun 2013. " Last Modified: 03 Jul 2013.
" License: MIT license {{{ " License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining " Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the " a copy of this software and associated documentation files (the
@ -1227,7 +1227,7 @@ function! neosnippet#clear_select_mode_mappings() "{{{
redir END redir END
for line in map(filter(split(mappings, '\n'), for line in map(filter(split(mappings, '\n'),
\ "v:val !~# 'neosnippet\\|neocomplcache_snippets'"), \ "v:val !~# '^s'"),
\ "substitute(v:val, '<NL>', '<C-J>', 'g')") \ "substitute(v:val, '<NL>', '<C-J>', 'g')")
let map = matchstr(line, '^\a*\s*\zs\S\+') let map = matchstr(line, '^\a*\s*\zs\S\+')
let map = substitute(map, '<NL>', '<C-j>', 'g') let map = substitute(map, '<NL>', '<C-j>', 'g')