Loading ...
Sorry, an error occurred while loading the content.

71986Re: substituting only in visual block

Expand Messages
  • Yakov Lerner
    Aug 2 10:13 AM
    • 0 Attachment
      On 8/2/06, Charles E Campbell Jr <drchip@...> wrote:
      > Robert Cussons wrote:
      > > Bernd Strohhäcker wrote:
      > >
      > >> try Charles Campell's vis-script:
      > >> http://www.vim.org/scripts/script.php?script_id=1195
      > >
      > > Thanks for the pointer to this, it is a useful script, if Charles is
      > > out there today, just a little point, it doesn't seem to like 'c'
      > > being used in substitutions, don't know if you already new about that...
      > (messages somewhat abbreviated above)
      > The selected column does show up separately for a bit; however, when one
      > is done answering "y" or "n"
      > (etc), the amended column does get put back -- ie. the confirmed
      > substitution works. That behavior is
      > fundamental to how vis.vim works. It isolates the requested text block,
      > performs the operation, and inserts
      > the text block back.

      Wow. Cute trick. I wondered how it is possible
      to do block-scoped substitution at all.

    • Show all 11 messages in this topic