Merge pull request #269 from wuranbo/master

*feature) 添加uppercase函数。
This commit is contained in:
Shougo 2015-04-10 18:43:15 +09:00
commit 33dca18724

View File

@ -247,6 +247,13 @@ function! neosnippet#view#_search_snippet_range(start, end, cnt, ...) "{{{
return 1 return 1
endfor endfor
for linenum in range(a:start, a:end)
let tmp_line = getline(linenum)
let tmp_line = substitute(tmp_line, '\v\%uc\(([^)]+)\)', '\U\1\E', 'g')
let tmp_line = substitute(tmp_line, '\v\%ucfirst\(([^)]+)\)', '\u\1', 'g')
call setline(linenum, tmp_line)
endfor
return 0 return 0
endfunction"}}} endfunction"}}}
function! s:search_outof_range(col) "{{{ function! s:search_outof_range(col) "{{{