[vim]如何在開啟檔案時跳到指定行號?

來源:互聯網
上載者:User

vim file +line

例如:

root@xxx-ubuntu:/ics-android/ics-src/system/core/init# grep init.rc * -rninit.c:706:    init_parse_config_file("/init.rc");util.c:79: * ("/dev/socket") as dictated in init.rc. This socket is inherited by theroot@xxx-ubuntu:/ics-android/ics-src/system/core/init# vi init.c +706691     mount("sysfs", "/sys", "sysfs", 0, NULL);692 693         /* indicate that booting is in progress to background fw loaders, etc */694     close(open("/dev/.booting", O_WRONLY | O_CREAT, 0000));695 696         /* We must have some place other than / to create the697          * device nodes for kmsg and null, otherwise we won't698          * be able to remount / read-only later on.699          * Now that tmpfs is mounted on /dev, we can actually700          * talk to the outside world.701          */702     open_devnull_stdio();703     klog_init();704 705     INFO("reading config file\n");706     init_parse_config_file("/init.rc");                                             707 708     /* pull the kernel commandline and ramdisk properties file in */709     import_kernel_cmdline(0, import_kernel_nv);710     /* don't expose the raw commandline to nonpriv processes */711     chmod("/proc/cmdline", 0440);712     get_hardware_name(hardware, &revision);713     snprintf(tmp, sizeof(tmp), "/init.%s.rc", hardware);714     init_parse_config_file(tmp);715 716     action_for_each_trigger("early-init", action_add_queue_tail);717 718     queue_builtin_action(wait_for_coldboot_done_action, "wait_for_coldboot_done");719     queue_builtin_action(property_init_action, "property_init");720     queue_builtin_action(keychord_init_action, "keychord_init");721     queue_builtin_action(console_init_action, "console_init"); /mnt/ics-android/ics-src/system/core/init/init.c[1,RO]        [c] unix utf-8 5:706/819



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.