On 5/20/07, Yakov Lerner <[EMAIL PROTECTED]> wrote:

> In a script, how do I get the value of ~ -- the last used
> replace-to string, as used in s//~/ ?
>
> Yakov
>

Quick hack. --Antony

fun! EchoTilde()
  $ put=''
  s/^/~/
  let tilde = getline('.')
  d
  echo tilde
endfun

Reply via email to