Don't use \v patterns

This commit is contained in:
Shougo Matsushita 2015-05-04 16:26:33 +09:00
parent d7145056c4
commit 526b31253e

View File

@ -249,8 +249,8 @@ function! neosnippet#view#_search_snippet_range(start, end, cnt, ...) "{{{
for linenum in range(a:start, a:end) for linenum in range(a:start, a:end)
let tmp_line = getline(linenum) let tmp_line = getline(linenum)
let tmp_line = substitute(tmp_line, '\v\%uc\(([^)]+)\)', '\U\1\E', 'g') let tmp_line = substitute(tmp_line, '\%uc(\([^)]\+\))', '\U\1\E', 'g')
let tmp_line = substitute(tmp_line, '\v\%ucfirst\(([^)]+)\)', '\u\1', 'g') let tmp_line = substitute(tmp_line, '\%ucfirst(\([^)]+\))', '\u\1', 'g')
call setline(linenum, tmp_line) call setline(linenum, tmp_line)
endfor endfor