Gedit:

Shortcuts:


Erase a word Ctrl W
Erase a line Ctrl U
Move to the start of the line Ctrl A
Move to the end of the line Ctrl E
Move forward one word Alt F
Move back one word Alt B
Move forward one character Ctrl F
Move back one character Ctrl B
Delete from the cursor to the beginning of the line Ctrl U
Delete from the cursor to the end of the line Ctrl K
Delete from the cursor to the start of the word Ctrl W
Delete previous word Alt Backspace
Clear the screen leaving the current line at the top of the screen Ctrl L

Add shortcut to delete a line

Manage External Tools...

Shortcut key: Shift+Ctrl+D

#!/bin/sh

#first: place the cursor at the end of the line by pressyng END key
#second: press Shift-CTRL-D
sed -r 's/(.*)/\n\1/'