Live Chat!

Open file to edit with vim at desire line

          0 votos

November 9th, 2006 Posted in Text Manipulation, vim | Hits: 2630 |

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

4 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 [...]

Leave a Reply