tailieunhanh - Oreilly learning the vi Editor phần 5

Thư Hai Transposing undo tất cả chỉnh sửa để phù (U): . Undo hoàn tác mới nhất (u): . Substitutions Xác nhận hoàn tác chỉnh sửa cuối cùng (u) . Vấn đề với Mất đoạn. Hoàn tác hoặc Lặp lại lệnh cuối của bạn . Undo văn bản yank (và) . Chỉnh sửa đơn giản . Sao chép văn bản | Chapter 7 Saving Commands The characters that compose your abbreviation cannot also appear at the end of your phrase. For example if you issue the command ab PG This movie is rated PG you ll get the message No tail recursion and the abbreviation won t be set. The message means that you have tried to define something that will expand itself repeatedly creating an infinite loop. If you issue the command ab PG the PG rating system you may or may not produce an infinite loop but in either case you won t get a warning message. For example when the above command was tested on a System V version of UNIX the expansion worked. On a Berkeley version though the abbreviation expanded repeatedly like this the the the the the . until a memory error occurred and vi quit. We recommend that you avoid repeating your abbreviation as part of the defined phrase. Using the map Command While you re editing you may find that you are using a command sequence frequently or you may occasionally use a very complex command sequence. To save yourself keystrokes or the time that it takes to remember the sequence you can assign the sequence to an unused key by using the map command. The map command acts a lot like ab except that you define a macro for command mode instead of insert mode. map x sequence Define character x as a sequence of editing commands. unmap x Disable the sequence defined for x. map List the characters that are currently mapped. Before you can start creating your own maps you need to know the keys not used in command mode that are available for user-defined commands Letters g K q V v Control keys a k ũ t w x Symbols _ Note The is used by vi if Lisp mode is set. http documents oreilly unix vi 2 of 10 2 6 2001 10 03 59 PM Chapter 7 Saving Commands Depending on your terminal you may also be able to associate map sequences with special function keys. With maps you can create simple or complex command sequences. As a .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.