Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
1.1.1 : remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: Ari Archer <[email protected]>
  • Loading branch information
Ari Archer committed May 21, 2023
1 parent 0a6e8f3 commit ca970f0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugin/subby.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Plugin Name: subby.vim
" Description: inline buffer substitute in vim
" Author: Ari Archer <[email protected]>
" Version: 1.1.0
" Version: 1.1.1
" License: GPLv3
" URL: https://ari-web.xyz/gh/subby.vim

Expand Down Expand Up @@ -39,11 +39,9 @@ function! s:Subby()
let pattern = '\V' . escape(g:subby_delim . key, '\') . '\C'

if word =~ pattern
let s = substitute(word, pattern, val, '')

normal! dbdh
execute 'normal! i' . s
execute 'normal! l' . len(s)
execute 'normal! i' . substitute(word, pattern, val, '')
normal! l
endif
endfor
endfunction
Expand Down

0 comments on commit ca970f0

Please sign in to comment.