I've always just tossed a comment onto the line before exiting vi edit mode to prevent execution...
On Tue, Apr 22, 2014 at 2:46 PM, Alessandro DE LAURENZIS < [email protected]> wrote: > Hello, > > I'm wondering how I could discard (not execute) a line after having > loaded it into vi (fc -e vi, or "v" for brevity in vi-mode). > > :wq, :q, :q! - all of them execute the line. > > I'm feeling really stupid... > > -- > Alessandro DE LAURENZIS > [mailto:[email protected]] > LinkedIn: http://it.linkedin.com/in/delaurenzis

