*feature) 添加uppercase函数。

This commit is contained in:
wuranbo 2015-04-10 17:07:46 +08:00
parent 044c9cb8ca
commit 455193d750

View File

@ -247,6 +247,13 @@ function! neosnippet#view#_search_snippet_range(start, end, cnt, ...) "{{{
return 1
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
endfunction"}}}
function! s:search_outof_range(col) "{{{