Open file to edit with vim at desire line

November 9th, 2006 Posted in Text Manipulation, vim | Hits: 24993 | 6 Comments »

You know that you can open a file with the desire line the curser will stop at

for example, when you get some error message say the code have error at line 3 of file text1,

you can use the +
to specify you curser starting point.

vim text1 +3

6 Responses to “Open file to edit with vim at desire line”

  1. Wow! great tips! Its really helps the software developer while tracing or debugging the source code.

  2. Alternatively, you can call

    :make

    from within vim. Then scroll to next error/warning with

    :cn

    and look at the error/warning message with

    :cc

    or jump back to previous error/warning with

    :cp

  3. [...] Refers back to Open file to edit with vim at desire line, here is another short tips of vim. [...]

  4. [...] If you have search for vim tips at here, you may remember to go to the desire line while opening file with vim is like this [...]

  5. hi: i am trying to install openfiler on VMwork station, and my IP is “192.168.2.114″, i set my openfiler IP as “192.168.2.123″ (which is available) but when i ping it , i got reply from “192.168.2.114″ saying destination-host-unreachable. why is that?
    my gateway is “192.168.2.1″.
    i pinged “192.168.2.114″, no problems,
    i pinged “192.168.2.1″, no problems.
    but when i ping “192.168.2.123″, i got reply from” 192.168.2.114″ saying service unreachable .
    my gateway is “192.168.2.1″.
    i pinged “192.168.2.114″, no problems,
    i pinged “192.168.2.1″, no problems.
    but when i ping “192.168.2.123″, i got reply from” 192.168.2.114″ saying service unreachable .
    my gateway is “192.168.2.1″.
    i pinged “192.168.2.114″, no problems,
    i pinged “192.168.2.1″, no problems.
    but when i ping “192.168.2.123″, i got reply from” 192.168.2.114″ saying service unreachable .

  6. Hi there colleagues, how is the whole thing, and
    what you want to say about this post, in my view its truly remarkable in
    support of me.

Leave a Reply