1 copyCharacterFromAbove = (editor, vimState) ->
3 for cursor in editor.getCursors()
4 {row, column} = cursor.getScreenPosition()
6 range = [[row-1, column], [row-1, column+1]]
7 cursor.selection.insertText(editor.getTextInBufferRange(editor.bufferRangeForScreenRange(range)))
9 copyCharacterFromBelow = (editor, vimState) ->
11 for cursor in editor.getCursors()
12 {row, column} = cursor.getScreenPosition()
13 range = [[row+1, column], [row+1, column+1]]
14 cursor.selection.insertText(editor.getTextInBufferRange(editor.bufferRangeForScreenRange(range)))
17 copyCharacterFromAbove,
18 copyCharacterFromBelow