Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to kill string but leave it in history?



In article <Pine.SV4.3.95.970116135536.21461I-100000@xxxxxxxxxxxxxxxxx>,
Andrej Borsenkow <borsenkow.msk@xxxxxx> wrote:

     pound-insert (unbound) (#) (unbound)
          If there is no # character  at  the  beginning  of  the
          buffer,  add  one  to  the  beginning of each line.  If
          there is one, remove a # from each line that  has  one.
          In   either   case,   accept  the  current  line.   The
          INTERACTIVE_COMMENTS option must be  set  for  this  to
           have any usefulness.

So, just M-x pound-insert ENTER. Even on other shells, it is useful to 
ctrl-a, insert some character or perhaps ": " and press enter.

Jari Kokko



Messages sorted by: Reverse Date, Date, Thread, Author