on master help sign in
Add eb word selection trick to the tutor (#5247)
1af76b7Alex Kladov
runtime/tutor+28−6
@@ -241,7 +241,7 @@ _________________________________________________________________
241
241
242
242
243=================================================================
243=================================================================
244−= 3.2 MORE ON MOTIONS =
244+= 3.2 MORE MOTIONS =
245=================================================================
245=================================================================
246
246
247 As you saw, typing w moves the cursor forward until the start
247 As you saw, typing w moves the cursor forward until the start
@@ -253,6 +253,19 @@ _________________________________________________________________
253 e - Move forward to the end of the current word.
253 e - Move forward to the end of the current word.
254 b - Move backward to the beginning of the current word.
254 b - Move backward to the beginning of the current word.
255
255
256+ To select the word under cursor, combine e and b.
257+
258+ 1. Move the cursor to the line marked '-->' below.
259+ 2. Move to a 'd' letter.
260+ 3. Type e to select a half of the word.
261+ 4. Type b to select the rest.
262+
263+--> The Middle Kingdom.
264+
265+=================================================================
266+= 3.3 WORDS AND words =
267+=================================================================
268+
256 The w,e,b motions also have counterparts - W,E,B - which
269 The w,e,b motions also have counterparts - W,E,B - which
257 traverse WORDS instead of words. WORDS are only separated by
270 traverse WORDS instead of words. WORDS are only separated by
258 whitespace, whereas words can be separated by other characters
271 whitespace, whereas words can be separated by other characters
@@ -262,8 +275,17 @@ _________________________________________________________________
262
275
263
276
264
277
278+
279+
280+
281+
282+
283+
284+
285+
286+
265=================================================================
287=================================================================
266−= 3.3 THE CHANGE COMMAND =
288+= 3.4 THE CHANGE COMMAND =
267=================================================================
289=================================================================
268
290
269 Type c to change the current selection.
291 Type c to change the current selection.
@@ -285,7 +307,7 @@ _________________________________________________________________
285
307
286
308
287=================================================================
309=================================================================
288−= 3.4 COUNTS WITH MOTIONS =
310+= 3.5 COUNTS WITH MOTIONS =
289=================================================================
311=================================================================
290
312
291 Type a number before a motion to repeat it that many times.
313 Type a number before a motion to repeat it that many times.
@@ -307,7 +329,7 @@ _________________________________________________________________
307
329
308
330
309=================================================================
331=================================================================
310−= 3.5 SELECT / EXTEND MODE =
332+= 3.6 SELECT / EXTEND MODE =
311=================================================================
333=================================================================
312
334
313 Type v to enter Select mode.
335 Type v to enter Select mode.
@@ -329,7 +351,7 @@ _________________________________________________________________
329
351
330
352
331=================================================================
353=================================================================
332−= 3.6 SELECTING LINES =
354+= 3.7 SELECTING LINES =
333=================================================================
355=================================================================
334
356
335 Type x to select a whole line. Type x again to select the next.
357 Type x to select a whole line. Type x again to select the next.
@@ -351,7 +373,7 @@ _________________________________________________________________
351 subsequent lines. X on an empty line does nothing.
373 subsequent lines. X on an empty line does nothing.
352
374
353=================================================================
375=================================================================
354−= 3.7 COLLAPSING SELECTIONS =
376+= 3.8 COLLAPSING SELECTIONS =
355=================================================================
377=================================================================
356
378
357 Type ; to collapse selections to single cursors.
379 Type ; to collapse selections to single cursors.