With gg for going to beginning of text

This commit is contained in:
Simon 2015-08-27 10:28:59 +02:00
parent ea2a8c4946
commit 2b3468a8aa
1 changed files with 15 additions and 0 deletions

View File

@ -667,6 +667,21 @@ Function ProcessSpecialKey(keyChar)
ElseIf keyChar = "r" Then
setSpecial("r")
' gg to go to beginning of text
ElseIf keyChar = "g" Then
If bIsSpecial Then
if getSpecial() = "g" Then
dim bExpand
bExpand = false
oTextCursor = getTextCursor()
oTextCursor.gotoStart(bExpand)
getCursor().gotoRange(oTextCursor.getStart(), False)
End If
ElseIf MODE = "NORMAL" Or MODE = "VISUAL" Then
setSpecial("g")
End If
' Otherwise, ignore if bIsSpecial
ElseIf bIsSpecial Then
bMatched = False