title: Emacs equivalents of Vim's dd,o,O
body: <p>I am currently playing around with emacs and happy with most of the concepts. But I really adored the convenience of the three vim commands: dd,o,O
  Hopefully you can tell me how to mirror them in emacs :)</p>
  
  <blockquote>
    <p><b>dd</b> - deletes whole line, including newline, no matter where the cursor is.</p>
  </blockquote>
  
  <p>I found something similar to do the trick:</p>
  
  <blockquote>
    <p>C-a C-k C-k</p>
  </blockquote>
  
  <p>While <code>C-a</code> moves the cursor to the beginning of the line, the first <code>C-k</code> kills the text, the second one kills the newline. The only problem is that this is not working on empty lines where I only need to type <code>C-k</code> which is quite inconvenient as I have to use different commands for the same task: killing a line.</p>
  
  <blockquote>
    <p><b>o / O</b> - creates a new empty line below / above cursor and moves cursor to the new line, indented correctly</p>
  </blockquote>
  
  <p>Well, <code>C-a C-o</code> is nearly like <code>O</code>, just the idention is missing. <code>C-e C-o</code> creates an empty line below the current but does not move the cursor.</p>
  
  <p>Are there any better solutions to my problems or do I have to learn Lisp and define new commands to fulfill my needs?</p>