[VIM] How do I jump to a specified line number when I open a file?

Source: Internet
Author: User
Tags socket

Vim file +line

For example:

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 was 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 are in progress to background FW loaders, etc */694 close ("/dev/.bootin G ", O_wronly |
o_creat, 0000)); 695 696/* We must has some place other than/to create the 697 * device nodes for kmsg and null, othe
Rwise we won ' t 698 * is able to remount/read-only later on.
699 * Now this tmpfs is mounted on/dev, we can actually the "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



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.