1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 02:30:03 +08:00

Edit text

This commit is contained in:
wsdjeg 2018-01-09 23:25:47 +08:00
parent bddbb5c15a
commit 21debcb0bc

View File

@ -129,5 +129,11 @@ function! s:parse_symbol(begin, end, symbol) abort
endfunction
function! s:replace_symbol(symbol) abort
let len = len(s:stack)
for idx in range(len)
let pos = s:stack[len-1-idx]
let line = getline(pos[0])
let line = line[: pos[1]] . a:symbol . line[pos[1] + pos[2]:]
call setline(pos[0], line)
endfor
endfunction