mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:30:03 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user