diff --git a/mvc/models.py b/mvc/models.py index a0e6d8e..7faf052 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -114,6 +114,9 @@ class VimModel: del self.displayBuffer[self.currentLine][self.currentCol + 1] case "yy": # копирует текущую строку self.exchangeBuffer = self.displayBuffer[self.currentLine].copy() + case "dd": # вырезает текущую строку + self.exchangeBuffer = self.displayBuffer[self.currentLine].copy() + del self.displayBuffer[self.currentLine] case "p": # вставить после курсора self.displayBuffer[self.currentLine][self.currentCol+1:self.currentCol+1] = self.exchangeBuffer