Skip to content

Commit 823e9e0

Browse files
authored
impr(language): add more vim commands to the word list (@soycarlo99) (monkeytypegame#6330)
### Description This pull request adds several new Vim commands to the monkeytype vim plugin, enhancing the typing practice experience for users. The new commands cover a wide range of Vim functionalities, including search, text objects, substitution, alignment, indentation, and various text manipulations. * - Search forward for word under cursor # - Search backward for word under cursor ip - Inner paragraph text object ap - A paragraph text object (including newline) is - Inner sentence text object as - A sentence text object (including trailing space) :%s/old/new/gc - Substitute with confirmation :center - Center align text >> - Indent line << - Unindent line = - Auto-indent ]p, ]P, [p, [P - Paste with automatic indentation gP, gp - Paste and leave cursor after new text g~ - Toggle case gu - Make lowercase gU - Make uppercase gs - Go to sleep (pause) for n seconds gJ - Join lines without space g& - Repeat last substitution on all lines gv - Reselect last visual selection gn, gN - Search and visually select match gi - Insert mode at the end of last insert gI - Insert at start of line ### Checks - [✅] If is a language, did you edit `_list.json`, `_groups.json` and add `languages.json`?
1 parent 94a320e commit 823e9e0

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

frontend/static/languages/code_vim.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,34 @@
140140
"zb",
141141
"zt",
142142
"zv",
143-
"zz"
143+
"zz",
144+
"*",
145+
"#",
146+
"ip",
147+
"ap",
148+
"is",
149+
"as",
150+
":%s/old/new/gc",
151+
":center",
152+
">>",
153+
"<<",
154+
"=",
155+
"]p",
156+
"]P",
157+
"[p",
158+
"[P",
159+
"gP",
160+
"gp",
161+
"g~",
162+
"gu",
163+
"gU",
164+
"gs",
165+
"gJ",
166+
"g&",
167+
"gv",
168+
"gn",
169+
"gN",
170+
"gi",
171+
"gI"
144172
]
145173
}

0 commit comments

Comments
 (0)