Skip to content

Commit

Permalink
do substitutions on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
claytron committed Oct 19, 2010
1 parent 3c5a65f commit dd7c86c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/RevealExtends.vim
Expand Up @@ -10,8 +10,7 @@ function! s:RevealExtends(line1, line2, count, ...)
" yank the visual selection
normal! gvy
" get rid of spaces and newlines
let s:hash_string = substitute(@@, '\n', '', 'g')
let s:hash_string = substitute(s:hash_string, ' ', '', 'g')
let s:hash_string = substitute(substitute(s:yanked_text, '\n', '', 'g'), ' ', '', 'g')
" find the extends cache directory
let s:dirname = substitute(system("awk '/^extends/ {print $3}' ~/.buildout/default.cfg"), '\n', '', 'g')
" get the md5 hash of the url string
Expand Down

0 comments on commit dd7c86c

Please sign in to comment.