mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-22 08:45:42 +08:00
Edit text
This commit is contained in:
parent
bddbb5c15a
commit
21debcb0bc
@ -129,5 +129,11 @@ function! s:parse_symbol(begin, end, symbol) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:replace_symbol(symbol) abort
|
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
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user