'Kill the next word'

def kill_next_word(self):

    position = self.textCursor().position()
    cursor = self._get_word_end_cursor(position)
    cursor.setPosition(position, QTextCursor.KeepAnchor)
    self._kill_ring.kill_cursor(cursor)
    self.setTextCursor(cursor)
