Skip to content

Commit

Permalink
fix(nvim): remove ChangeReplace mark error
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtabrams committed Jun 5, 2020
1 parent c44febb commit be90a38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/.config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ function! ChangeReplace(...)
let motion = GetMotion()
endif
let save_cursor = getcurpos()
exe 'norm jmmk"_c'.motion.trim(getreg("+"))
exe 'norm "_c'.motion.trim(getreg("+"))
call setpos(".", save_cursor)
norm ='m
exe "norm =".motion
call setpos(".", save_cursor)
call repeat#set(":call ChangeReplace('".motion."')\<CR>",-1)
return ""
Expand Down

0 comments on commit be90a38

Please sign in to comment.