您的位置:首页 > 其它

[vim]如何在打开文件时跳到指定行号?

2012-11-09 23:55 459 查看
vim file +line

例如:

root@xxx-ubuntu:/ics-android/ics-src/system/core/init# grep init.rc * -rn
init.c:706: init_parse_config_file("/init.rc");
util.c:79: * ("/dev/socket") as dictated in init.rc. This socket is inherited by the
root@xxx-ubuntu:/ics-android/ics-src/system/core/init# vi init.c +706
691 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 the
697 * device nodes for kmsg and null, otherwise we won't
698 * be able to remount / read-only later on.
699 * Now that tmpfs is mounted on /dev, we can actually
700 * 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: