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
1 changed files with 7 additions and 0 deletions

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) "{{{