Skip to content

Commit

Permalink
Use named register
Browse files Browse the repository at this point in the history
  • Loading branch information
hail2u committed Dec 9, 2015
1 parent 8c35341 commit 5f4295e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/float-round.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function! s:RoundFloat(p, s, e)
\ '\=printf("%.' . a:p . 'f", str2float(submatch(0)))',
\ 'g')
let r = substitute(r, '\(\d\+\)\.\([1-9]\+\)[0]\+\([^1-9]\)', '\1.\2\3', 'g')
let @" = r
execute 'normal! ' . a:s . 'GV' . a:e . 'G""p'
let @f = r
execute 'normal! ' . a:s . 'GV' . a:e . 'G"fp'
endfunction


Expand Down

0 comments on commit 5f4295e

Please sign in to comment.