Today I saw a neat copy function in VI, in which you could copy an entire line until a stop character.
e.g. if( copy == this );
With VI he could copy everything inside the parenthesis. I wonder if you can do it with emacs as well? (Without using ctrl+space and manually marking what I want to kill)
Try
Which kills the text through the next occurrence of
CHAR. Aka M-x zap-to-char. Of interest might be the documentation for Other Kill Commands.Edited to add: Upon request, here is
zap-to-before-char, which just took the source code forzap-to-charand removed a comment (and updated doc string):