*feature) 添加uppercase函数。
This commit is contained in:
parent
044c9cb8ca
commit
455193d750
@ -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) "{{{
|
||||
|
Loading…
Reference in New Issue
Block a user