Skip to content

Commit c0fefa2

Browse files
committed
update "e/E" to move to the end of the next word"
1 parent 692e958 commit c0fefa2

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,12 @@ If using a custom two-letter hotkey to enter the normal mode, the two letters mu
248248
|Key/Commands|Function|
249249
|:----------:|:-------|
250250
|h/j/k/l|Left/Down/Up/Right.|
251-
|0/$| To the start/end of the line.|
252-
|Ctrl-a/Ctrl-e| To the start/end of the line (emacs like).|
253-
|^| To the starting non-whitespace character of the line.|
254-
|w/W/e/E| Move a word forward (all work the same way: goes to the beginning of the word).|
255-
|b/B| Move a word backward (b/B: the beginning of the word).|
251+
|0/$| Move to the start/end of the line.|
252+
|Ctrl-a/Ctrl-e| Move to the start/end of the line (emacs like).|
253+
|^| Move to the starting non-whitespace character of the line.|
254+
|w/W| Move to the beginning of the next word.|
255+
|e/E| Move to the end of the next word. (Actually, move to the beggining of the next next word and move a one character left.)|
256+
|b/B| Move to the beginning of the previous word.|
256257
|Ctrl-u/Ctrl-d| Go Up/Down 10 line.|
257258
|Ctrl-b/Ctrl-f| PageUp/PageDown.|
258259
|gg/G| Go to the top/bottom of the file|

lib/bind/vim_move.ahk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ $::Vim.Move.Move("$")
1919
^::Vim.Move.Move("^")
2020
; Words
2121
w::Vim.Move.Repeat("w")
22-
+w::Vim.Move.Repeat("w") ; +w/e/+e are same as w
23-
e::Vim.Move.Repeat("w")
24-
+e::Vim.Move.Repeat("w")
22+
+w::Vim.Move.Repeat("w") ; +w = w
23+
e::Vim.Move.Repeat("e")
24+
+e::Vim.Move.Repeat("e") ; +e = e
2525
b::Vim.Move.Repeat("b")
2626
+b::Vim.Move.Repeat("b") ; +b = b
2727
; Page Up/Down

lib/vim_ahk.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
class VimAhk{
2222
__About(){
23-
this.About.Version := "v0.9.1"
24-
this.About.Date := "02/May/2021"
23+
this.About.Version := "v0.9.2"
24+
this.About.Date := "21/Aug/2021"
2525
this.About.Author := "rcmdnk"
2626
this.About.Description := "Vim emulation with AutoHotkey, everywhere in Windows."
2727
this.About.Homepage := "https://github.com/rcmdnk/vim_ahk"

lib/vim_move.ahk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@
156156
}else{
157157
Send, ^{Right}
158158
}
159+
}else if(key == "e"){
160+
if(this.shift == 1){
161+
Send, +^{Right}+^{Right}+{Left}
162+
}else{
163+
Send, ^{Right}^{Right}{Left}
164+
}
159165
}else if(key == "b"){
160166
if(this.shift == 1){
161167
Send, +^{Left}

0 commit comments

Comments
 (0)