[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
例如:
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
相关文章推荐
- linux之vim如何快速找到第二次打开文件的指定行
- 如何打开指定类型的文件
- vim打开的文件显示行号
- 如何在终端用mvim命令打开文件到macvim选项卡
- vim打开文件时显示行号
- vim打开文件时显示行号
- vim,gvim使用指定编码打开文件,gvim中文乱码
- vim打开文件时显示行号
- 如何在终端用mvim命令打开文件到macvim选项卡
- VC中如何打开指定程序或者文件
- vim 命令基础学习(1)——清空文件内容,显示行号,跳转到指定行
- 上传文件如何在打开对话框中只显示指定后缀的文件
- ARX如何打开指定位置的DWG文件
- VB如何执行命令 打开资源管理器 并选择指定的文件夹或文件
- vim以指定格式打开文件
- 【Unity3d】自动版本构建: 如何在Windows平台下自动打开资源管理器并且选中指定文件
- vim打开文件时显示行号
- linux中如何快速在某目录下打开终端 及vim多文件调试
- [VB.NET]如何用打开指定文件
- Mac 系统如何在命令行通过 Sublime Text 3打开指定文件/文件夹