Commit 19335bf James Halliday
committed
1 parent 4f77e56 commit 19335bf Copy full SHA for 19335bf
File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,48 @@ or deleting, press `p` to paste.
382
382
* ` V ` - select by lines
383
383
* ctrl-` v ` - select in a block
384
384
385
+ ---
386
+ # more insert modes
387
+
388
+ There are more ways to insert mode than just ` i ` :
389
+
390
+ * ` o ` - go into insert mode, inserting a new line
391
+ below the current line
392
+ * ` O ` - go into insert mode, inserting a new line
393
+ * above the current line
394
+ * ` a ` - go into insert mode at one character to
395
+ the right
396
+ * ` A ` - go into insert mode at the end of the
397
+ current line
398
+
399
+ ---
400
+ # fancy odds and ends
401
+
402
+ * ` J ` - move the next line to the end of the
403
+ current line
404
+
405
+ ---
406
+ # insert a file
407
+
408
+ You can insert a file at the cursor position with:
409
+
410
+ ```
411
+ :r otherfile.txt
412
+ ```
413
+
414
+ ---
415
+ # insert with a command in place
416
+
417
+ You can insert the output of a command at the
418
+ cursor position with ` :r! ` .
419
+
420
+ For example, to insert the output of the ` pwd `
421
+ command:
422
+
423
+ ```
424
+ :r!pwd
425
+ ```
426
+
385
427
---
386
428
# .vimrc
387
429
You can’t perform that action at this time.
0 commit comments