code: def cmdDeleteUntilEndOfBlock(self, cmd, count):
          
          cursor = self._qpart.textCursor()
          for _ in range(count - 1):
              cursor.movePosition(QTextCursor.Down, QTextCursor.KeepAnchor)
          cursor.movePosition(QTextCursor.EndOfBlock, QTextCursor.KeepAnchor)
          _globalClipboard.value = cursor.selectedText()
          cursor.removeSelectedText()
          if cmd == _C:
              self.switchMode(Insert)
  
          self._saveLastEditSimpleCmd(cmd, count)
docs: C and D