Commit 89143d5
Changed files (1)
vimrc
@@ -145,7 +145,7 @@ function! InlineTemp()
normal "ayiw
normal $"byiW
normal dd
- exec ":.,/end/ s:\\<" . @a . "\\>:" . @b . ":gI"
+ exec ":.,/end/ s/\\<" . @a . "\\>/" . @b . "/gI"
call setpos(".", cursor_position)
endfunction
@@ -165,7 +165,7 @@ function! RenameVariable()
let cursor_position = getpos(".")
let name = input("new name: ")
normal "ayiw
- exec ":.,/end/ s/" . @a . '/' . name . '/'
+ exec ":.,/end/ s/\\<" . @a . "\\>/" . name . "/gI"
call setpos(".", cursor_position)
endfunction