in reply to Re: Adding '#' in the beginning of each line
in thread Adding '#' in the beginning of each line

Using Komodo I'd:

although that may not place the # as the first character of each line - it tends to follow indentation and will be the first non-whitespace character on each line

Update Actually ctrl-3 does place a comment character at the start of each selected line. I was confusing the behaviour with Visual Studio which tends to follow indentation when you use ctrl-k ctrl-c.


DWIM is Perl's answer to Gödel
  • Comment on Re^2: Adding '#' in the beginning of each line

Replies are listed 'Best First'.
Re^3: Adding '#' in the beginning of each line
by liverpole (Monsignor) on Aug 16, 2006 at 10:59 UTC
    In /g?vim/:
    :%s//#/

    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/