Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Thư Hai Transposing undo tất cả chỉnh sửa để phù (U): 2.3.8.2. Undo hoàn tác mới nhất (u): 6.1. Substitutions Xác nhận hoàn tác chỉnh sửa cuối cùng (u) 2.3.5.4. 2.3.8 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 2.3.8.2. Undo văn bản yank (và) 2.3. Chỉnh sửa đơn giản 2.3.7. Sao chép văn bản | Chapter 7 7.3 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. 7.3.2 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 www.crypto.nc1uw1aoi420d85w1sos.de documents oreilly unix vi ch07_03.htm 2 of 10 2 6 2001 10 03 59 PM Chapter 7 7.3 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 .