forked from rtorr/vim-cheat-sheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvi_vn.json
More file actions
361 lines (361 loc) · 18.7 KB
/
Copy pathvi_vn.json
File metadata and controls
361 lines (361 loc) · 18.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
{
"title": "Tiếng Việt",
"lang": "vi_vn",
"lang_tag": "vi",
"cursorMovement": {
"title": "Cursor movement",
"commands": {
"h": "di chuyển con trỏ qua trái một ký tự",
"j": "di chuyển con trỏ xuống dưới một hàng",
"k": "di chuyển con trỏ lên trên một hàng",
"l": "di chuyển con trỏ qua phải một ký tự",
"gj": "move cursor down (multi-line text)",
"gk": "move cursor up (multi-line text)",
"w": "di chuyển qua phải, đến ký tự đầu tiên của từ kế tiếp",
"W": "di chuyển qua phải, đến ký tự đầu tiên của từ kế tiếp (trong từ có thể chứa các ký tự đặc biệt và dấu câu)",
"e": "di chuyển qua phải, đến ký tự cuối cùng của từ",
"E": "di chuyển qua phải, đến ký tự cuối cùng của từ (trong từ có thể chứa các ký tự đặc biệt và dấu câu)",
"b": "di chuyển qua trái, đến ký tự đầu tiên của từ",
"B": "di chuyển qua trái, đến ký tự đầu tiên của từ (trong từ có thể chứa các ký tự đặc biệt và dấu câu)",
"ge": "di chuyển qua trái, đến ký tự cuối cùng của từ trước đó",
"gE": "di chuyển qua trái, đến ký tự cuối cùng của từ trước đó (trong từ có thể chứa các ký tự đặc biệt và dấu câu)",
"H": "di chuyển con trỏ lên đầu màn hình",
"M": "di chuyển con trỏ về giữa màn hình",
"L": "di chuyển con trỏ xuống cuối màn hình",
"zero": "di chuyển về đầu hàng",
"caret": "di chuyển đến ký tự non-blank đầu tiên của hàng",
"dollar": "di chuyển về cuối hàng",
"g_": "di chuyển đến ký tự non-blank cuối cùng của hàng",
"gg": "di chuyển đến hàng đầu tiên của file",
"G": "di chuyển đến hàng cuối cùng của file",
"fiveG": "di chuyển đến hàng thứ 5 của file",
"gd": "move to local declaration",
"gD": "move to global declaration",
"fx": "jump to next occurrence of character x",
"tx": "jump to before next occurrence of character x",
"Fx": "jump to previous occurence of character x",
"Tx": "jump to after previous occurence of character x",
"semicolon": "repeat previous f, t, F or T movement",
"comma": "repeat previous f, t, F or T movement, backwards",
"closeCurlyBrace": "di chuyển đến khối văn bản tiếp theo.",
"openCurlyBrace": "di chuyển đến khối văn bản trước đó.",
"centerCursor": "di chuyển màn hình để con trỏ nằm ở trung tâm màn hình.",
"topCursor": "position cursor on top of the screen",
"bottomCursor": "position cursor on bottom of the screen",
"CtrlPluse": "di chuyển màn hình xuống dưới một hàng (không di chuyển con trỏ).",
"CtrlPlusy": "di chuyển màn hình lên trên một hàng (không di chuyển con trỏ).",
"CtrlPlusb": "di chuyển lên trên một màn hình.",
"CtrlPlusf": "di chuyển xuống dưới một màn hình.",
"CtrlPlusu": "di chuyển lên trên 1/2 màn hình.",
"CtrlPlusd": "di chuyển xuống dưới 1/2 một màn hình.",
"percent": "di chuyển đến dấu đóng mở ngoặc tương ứng (hỗ trợ mặc định: '()', '{}', '[]' - gọi lệnh <code>:h matchpairs</code> để biết thêm chi tiết.)"
},
"tip": "Sử dụng tiền tố là chữ số cùng với lệnh để lặp lại lệnh đó. Ví dụ, <kbd>4j</kbd> là di chuyển xuống dưới 4 hàng."
},
"insertMode": {
"title": "Insert mode - inserting/appending text",
"commands": {
"i": "chèn vào phía trước con trỏ",
"I": "chèn vào đầu hàng",
"a": "chèn vào phía sau con trỏ",
"A": "chèn vào cuối hàng",
"o": "chèn một hàng mới ở bên dưới hàng hiện tại",
"O": "chèn một hàng mới ở bên trên hàng hiện tại",
"ea": "chèn vào cuối từ",
"ctrlPlush": "trong chế độ Insert, xóa 1 ký tự nằm bên trái con trỏ, tương đương với backspace.",
"ctrlPlusw": "trong chế độ Insert, xóa các ký tự nằm bên trái con trỏ, tính từ vị trí con trỏ đến ký tự đầu tiên của từ",
"ctrlPlusj": "trong chế độ Insert, chèn một hàng mới ở bên trên hàng hiện tại",
"ctrlPlust": "trong chế độ Insert, di chuyển cả hàng qua phải 1 Tab.",
"ctrlPlusd": "trong chế độ Insert, di chuyển cả hàng qua trái 1 Tab.",
"ctrlPlusn": "insert (auto-complete) next match before the cursor during insert mode",
"ctrlPlusp": "insert (auto-complete) previous match before the cursor during insert mode",
"ctrlPlusrx": "insert the contents of register x",
"ctrlPlusox": "Temporarily enter normal mode to issue one normal-mode command x.",
"Esc": "thoát khỏi chế độ Insert"
}
},
"editing": {
"title": "Editing",
"commands": {
"r": "thay thế một ký tự với một ký tự khác, ví dụ: ra, rx,...",
"R": "thay thế nhiều ký tự cho đến khi <kbd>ESC</kbd> được nhấn.",
"J": "nối hàng hiện tại và hàng bên dưới, khoảng trắng giữa 2 hàng được chuyển thành 1 space.",
"gJ": "nối hàng hiện tại và hàng bên dưới, giữ nguyên khoảng trắng giữa 2 hàng.",
"gwip": "reflow paragraph",
"gTilde": "chuyển đổi giữa lowercase và uppercase cho các ký tự nằm trong vùng di chuyển của con trỏ.",
"gu": "chuyển thành lowercase cho các ký tự nằm trong vùng di chuyển của con trỏ, ví dụ: <kbd>gu</kbd><kbd> Enter</kbd> là chuyển cả hàng thành lowercase.",
"gU": "chuyển thành uppercase cho các ký tự nằm trong vùng di chuyển của con trỏ, ví dụ: <kbd>gUiw</kbd> là chuyển cả từ thành uppercase.",
"cc": "thay đổi nội dung của một hàng",
"cDollar": "thay đổi nội dung của hàng, tính từ vị trí con trỏ đến cuối hàng.",
"ciw": "thay đổi nội dung của cả một từ.",
"cw": "thay đổi nội dung của một từ, tính từ vị trí con trỏ đến ký tự cuối cùng của từ.",
"s": "xóa một ký tự và vào chế độ Insert.",
"S": "xóa một hàng và vào chế độ Insert. (tương đương với lệnh <kbd>cc</kbd>)",
"xp": "hoán đổi vị trí 2 ký tự (delete and paste)",
"u": "undo",
"U": "restore (undo) last changed line",
"CtrlPlusr": "redo",
"dot": "thực hiện lại lệnh gần nhất."
}
},
"markingText": {
"title": "Marking text (visual mode)",
"commands": {
"v": "chế độ đánh dấu, dùng để bôi đen ký tự, sau đó thực hiện các command như copy hoặc xóa.",
"V": "chế độ đánh dấu, dùng để bôi đen theo hàng. ",
"o": "move to other end of marked area",
"CtrlPlusv": "start visual block mode",
"O": "move to other corner of block",
"aw": "mark a word",
"ab": "a block with ()",
"aB": "a block with {}",
"at": "a block with <> tags",
"ib": "inner block with ()",
"iB": "inner block with {}",
"it": "inner block with <> tags",
"Esc": "exit visual mode"
},
"tip1": "Instead of <kbd>b</kbd> or <kbd>B</kbd> one can also use <kbd>(</kbd> or <kbd>{</kbd> respectively."
},
"visualCommands": {
"title": "Visual commands",
"commands": {
"greaterThan": "shift text right",
"lessThan": "shift text left",
"y": "copy những ký tự đã được bôi đen.",
"d": "xóa những ký tự đã được bôi đen.",
"tilde": "chuyển đổi giữa uppercase và lowercase cho những ký tự đã bôi đen.",
"u": "chuyển thành lowercase cho những ký tự đã bôi đen.",
"U": "chuyển thành uppercase cho những ký tự đã bôi đen."
}
},
"registers": {
"title": "Registers",
"commands": {
"show": "show registers content",
"pasteRegisterX": "paste contents of register x",
"yankIntoRegisterX": "yank into register x",
"quotePlusy": "yank into the system clipboard register",
"quotePlusp": "paste from the system clipboard register"
},
"tip1": "Registers are being stored in ~/.viminfo, and will be loaded again on next restart of vim.",
"tip2": {
"0": "last yank",
"title": "Special registers:",
"quote": "unnamed register, last delete or yank",
"percent": "current file name",
"hashtag": "alternate file name",
"asterisk": "clipboard contents (X11 primary)",
"plus": "clipboard contents (X11 clipboard)",
"slash": "last search pattern",
"colon": "last command-line",
"dot": "last inserted text",
"minus": "last small (less than a line) delete",
"equal": "expression register",
"underscore": "black hole register"
}
},
"marks": {
"title": "Marks and positions",
"commands": {
"list": "list of marks",
"currentPositionA": "set current position for mark A",
"jumpPositionA": "jump to position of mark A",
"yankToMarkA": "yank text to position of mark A",
"backtick0": "go to the position where Vim was previously exited",
"backtickQuote": "go to the position when last editing this file",
"backtickDot": "go to the position of the last change in this file",
"backtickBacktick": "go to the position before the last jump",
"colonjumps": "list of jumps",
"ctrlPlusi": "go to newer position in jump list",
"ctrlPluso": "go to older position in jump list",
"colonchanges": "list of changes",
"gcomma": "go to newer position in change list",
"gsemicolon": "go to older position in change list",
"ctrlPlusCloseSquare": "jump to the tag under cursor"
},
"tip1": "To jump to a mark you can either use a backtick (<kbd>`</kbd>) or an apostrophe (<kbd>'</kbd>). Using an apostrophe jumps to the beginning (first non-black) of the line holding the mark.",
"tip": ""
},
"macros": {
"title": "Macros",
"commands": {
"recordA": "record macro a",
"stopRecording": "stop recording macro",
"runA": "run macro a",
"rerun": "rerun last run macro"
}
},
"global": {
"title": "Global",
"commands": {
"helpForKeyword": "tra cứu một lệnh, ví dụ: <code>:h dd</code>",
"saveAsFile": "lưu file với tên mới, ví dụ: <code>:sav new_file_name</code>",
"closePane": "close current pane",
"K": "mở manual page cho từ khóa ở vị trí con trỏ.",
"colonTerminal": "mở cửa sổ Terminal cùng với của sổ vim."
},
"tip1": "Chạy lệnh <kbd>vimtutor</kbd> trong terminal để học những lệnh Vim đầu tiên."
},
"cutAndPaste": {
"title": "Cut and paste",
"commands": {
"yy": "copy 1 hàng tại vị trí con trỏ.",
"twoyy": "copy 2 hàng, tính từ hàng chứa con trỏ.",
"yw": "copy từ vị trí con trỏ đến trước ký tự đầu tiên của từ tiếp theo.",
"yiw": "copy cả từ tại vị trí con trỏ",
"yaw": "copy cả từ tại vị trí con trỏ, kể cả khoảng trắng phía trước hoặc sau nó.",
"yDollar": "copy từ vị trí con trỏ đến cuối hàng.",
"p": "paste vào vị trí phía sau con trỏ.",
"P": "paste vào vị trí phía trước con trỏ.",
"gp": "put (paste) the clipboard after cursor and leave cursor after the new text",
"gP": "put (paste) before cursor and leave cursor after the new text",
"dd": "xóa 1 hàng.",
"twodd": "xóa 2 hàng.",
"dw": "xóa từ vị trí con trỏ đến trước ký tự đầu tiên của từ tiếp theo.",
"diw": "xóa cả từ tại vị trí con trỏ.",
"daw": "xóa cả từ tại vị trí con trỏ, kể cả khoảng trắng phía trước hoặc sau nó.",
"dDollar": "xóa đến cuối hàng.",
"x": "xóa ký tự tại vị trí con trỏ.",
"threeToFiveD": "delete lines starting from 3 to 5",
"gPatternD": "delete all lines containing pattern",
"gNotPatternD": "delete all lines not containing pattern"
},
"tip1": {
"title": "You can also use the following characters to specify the range:",
"commands": {
"dotCommaDollarD": "From the current line to the end of the file",
"dotCommaOneD": "From the current line to the beginning of the file",
"tenCommaOneD": "From the 10th line to the beginning of the file"
}
}
},
"indentText": {
"title": "Indent text",
"commands": {
"greaterThanGreaterThan": "di chuyển cả hàng sang phải 1 tab.",
"lessThanLessThan": "di chuyển cả hàng sang trái 1 tab.",
"greaterThanPercent": "di chuyển cả block (block được bao bọc bởi (), {}), tính từ hàng chứa con trỏ sang phải 1 tab",
"greaterThanib": "indent inner block with ()",
"greaterThanat": "indent a block with <> tags",
"3==": "re-indent 3 hàng, tính từ hàng chứa con trỏ.",
"=Percent": "re-indent cả block (block được bao bọc bởi (), {}), tính từ hàng chứa con trỏ.",
"=iB": "re-indent inner block with {}",
"gg=G": "re-indent entire buffer",
"closeSquarep": "paste and adjust indent to current line",
"lessThanPercent": "de-indent a block with () or {} (cursor on brace)"
}
},
"exiting": {
"title": "Exiting",
"commands": {
"colonw": "lưu file",
"colonwsudo": "lưu file với quyền root",
"colonwq": "lưu và đóng file.",
"colonx": "lưu và đóng file.",
"colonq": "đóng file nếu file đó chưa bị thay đổi.",
"colonqbang": "đóng file, bỏ qua những thay đổi có trong file.",
"colonwqa": "lưu và đóng tất cả file đang mở."
}
},
"searchAndReplace": {
"title": "Search and replace",
"commands": {
"forwardSlashPattern": "search for pattern",
"questionMarkPattern": "search backward for pattern",
"backslashVpattern": "'very magic' pattern: non-alphanumeric characters are interpreted as special regex symbols (no escaping needed)",
"n": "repeat search in same direction",
"N": "repeat search in opposite direction",
"colonPercentForwardSlashOldForwardSlashNewForwardSlashg": "replace all old with new throughout file",
"colonPercentForwardSlashOldForwardSlashNewForwardSlashgc": "replace all old with new throughout file with confirmations",
"colonnoh": "remove highlighting of search matches"
}
},
"searchMultipleFiles": {
"title": "Search in multiple files",
"commands": {
"colonvimgrep": "search for pattern in multiple files",
"coloncn": "jump to the next match",
"coloncp": "jump to the previous match",
"coloncopen": "open a window containing the list of matches",
"coloncclose": "close the quickfix window"
}
},
"workingWithMultipleFiles": {
"title": "Working with multiple files",
"commands": {
"colone": "edit a file in a new buffer",
"colonbnext": "go to the next buffer",
"colonbprev": "go to the previous buffer",
"colonls": "list all open buffers",
"colonbd": "delete a buffer (close a file)",
"colonbnumber": "go to a buffer by index #",
"colonbfile": "go to a buffer by file",
"colonsp": "open a file in a new buffer and split window",
"colonvsp": "open a file in a new buffer and vertically split window",
"colonvertba": "edit all buffers as vertical windows",
"colontabba": "edit all buffers as tabs",
"ctrlPlusws": "split window",
"ctrlPluswv": "split window vertically",
"ctrlPlusww": "switch windows",
"ctrlPluswq": "quit a window",
"ctrlPluswx": "exchange current window with next one",
"ctrlPlusw=": "make all windows equal height & width",
"ctrlPluswh": "move cursor to the left window (vertical split)",
"ctrlPluswl": "move cursor to the right window (vertical split)",
"ctrlPluswj": "move cursor to the window below (horizontal split)",
"ctrlPluswk": "move cursor to the window above (horizontal split)",
"ctrlPluswH": "make current window full height at far left (leftmost vertical window)",
"ctrlPluswL": "make current window full height at far right (rightmost vertical window)",
"ctrlPluswJ": "make current window full width at the very bottom (bottommost horizontal window)",
"ctrlPluswK": "make current window full width at the very top (topmost horizontal window)"
}
},
"tabs": {
"title": "Tabs",
"commands": {
"colonTabNew": "open a file in a new tab",
"ctrlPluswT": "move the current split window into its own tab",
"gt": "move to the next tab",
"gT": "move to the previous tab",
"hashgt": "move to tab number #",
"colontabmove": "move current tab to the #th position (indexed from 0)",
"colontabc": "close the current tab and all its windows",
"colontabo": "close all tabs except for the current one",
"colontabdo": "run the <code>command</code> on all tabs (e.g. <code>:tabdo q</code> - closes all opened tabs)"
}
},
"diff": {
"title": "Diff",
"commands": {
"zf": "manually define a fold up to motion",
"zd": "delete fold under the cursor",
"za": "toggle fold under the cursor",
"zo": "open fold under the cursor",
"zc": "close fold under the cursor",
"zr": "reduce (open) all folds by one level",
"zm": "fold more (close) all folds by one level",
"zi": "toggle folding functionality",
"closeSquarec": "jump to start of next change",
"openSquarec": "jump to start of previous change",
"do": "obtain (get) difference (from other buffer)",
"dp": "put difference (to other buffer)",
"colonDiffthis": "make current window part of diff",
"colonDiffupdate": "update differences",
"colonDiffoff": "switch off diff mode for current window"
},
"tip1": "The commands for folding (e.g. <kbd>za</kbd>) operate on one level. To operate on all levels, use uppercase letters (e.g. <kbd>zA</kbd>).",
"tip2": "To view the differences of files, one can directly start Vim in diff mode by running <kbd>vimdiff</kbd> in a terminal. One can even set this as <kbd>git difftool</kbd>."
},
"words": {
"keyword": "keyword",
"file": "file",
"movement": "movement"
},
"languages": {
"title": "Languages"
},
"footer": "Xem mã nguồn trên ",
"layout": "page",
"permalink": "/lang/vi_vn/"
}