tailieunhanh - Learning the vi Text Editor 6th phần 6

Làm một từ khóa tra cứu trên getopt_long. vim chuyển , đặt con trỏ vào định nghĩa của getopt_long. Nó chỉ ra rằng getopt_long là một "wrapper" chức năng cho _getopt_internal. Bạn đặt con trỏ vào _getopt_internal và tìm kiếm từ khóa khác. Tổ hợp phím Kết quả | getopt option processing ready set. gel for optopt u old_optlnd 1 c etopt_long irgc argv CỊptlist optab NULL EOFj-optopt Ũ oLd optind opbind if dio_pesix optcir TRUE Edit and move to the call to getopt_long. A Lnl jatopL_long ýaitQC arjiv options long_options op J int argc char const argv const ehaI options const struct option 1 ong_ọptions int cpt index return _gstopt_internal tarac argv options lona_options opt-index Uj 189 lines. 4S51 characters Do a tag lookup on getopt_long. vim moves to placing the cursor on the definition of getopt_long. It turns out that getopt_long is a wrapper function for_getopt_internal. You place the cursor on _getopt_internal and do another tag search. Keystrokes Results 8jf_ A inL _jje t op t_ internal large argv optstiing Longind Long only int urge J char consL argv const obài opts t ring const struct option longopts jut longind int long_only optarg HULL getopt-c 100Ũ lines 2B7Ũ5 characters You have now moved to . To find out more about struct option move the cursor to option and do another tag search. 5jfo A For long Cipt-icftu have ã ZKICJ íltig fỉel 3-j returns the contents of the vai field. struct- option. iif defined 1. STDC J 5TDC const- char UHDBr char namej fwidif sget0p5i- L i 133 Linet. 4691 chainclerss The editor moves to the definition of struct option in . You may now look over the comments explaining how it s used. tags TO tag FRQH line in file 1 1 jstopt_Long 20Ĩ 2 L getopt-internal 75 3 L option 65 The tags command in vim displays the tag stack. Typing AT three times would move you back to where you started. The tag facilities make it easy to move around as you edit source code. Improved Facilities The four clones all provide additional features that make simple text editing easier and more powerful. Editing the ex command line The ability to edit ex mode commands as you type them possibly including a saved .

TỪ KHÓA LIÊN QUAN