vim tips, goto line

February 10th, 2007 mysurface Posted in Misc, Text Manipulation, vi, vim | Hits: 70313 | 13 Comments »

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

vim hello.c +12

And while edit with vim, to move to desire line, type the line number and press shift g or G. With the search forward and backward tips examples shows here.

Yesterday, I accidentally discover that to move to a desire line while edit with vim, can be done by this


As I press escape and colon more often than pressing shift g, goto a line with :<line number&mt; is more comfortable for me.

13 Responses to “vim tips, goto line”

  1. 12gg works well too.

  2. Yes it works, good tip

  3. 12% works for relative goto percentage (start typing 12 and press % and will be automatically positioned at 12%)

    useful for large logs

  4. You need to be a part of a contest for one of the most useful websites on the internet.
    I’m going to highly recommend this blog!

  5. Unlike other MMOs, companions in SWTOR are more than just canon fodder: They’re smart, helping you out when you need it.

    The Diablo 3 site released this official FAQ regarding the
    open beta ‘stress test’:. That means we’ll be exposed to world Pv – P,
    2 new territories, four new instances, and 500 new quests we didn’t see in the previous phases.

  6. Excellent post. I will be going through many of
    these issues as well..

  7. Appears searching on-line in excess of Three hours lately, still I actually never ever uncovered virtually any attention-grabbing post similar to you. It truly is charming value adequate in my opinion. In my view, if perhaps just about all web owners along with web owners manufactured exceptional content when you does, the net will probably be additional helpful than ever.

  8. The studies support it. People who maintain a healthy weight
    begin off with lean protein.

  9. Thanks for any other fantastic post. The place
    else may anybody get that type of information in such an ideal way of writing? I’ve a presentation next week,
    and I am on the search for such info.

  10. Wow! In the end I got a website from where I be able to actually obtain useful information regarding my study and knowledge.

  11. Marvelous, what a weblog it is! This web site presents useful facts to us,
    keep it up.

  12. ?????, ??????????????? ?????????? ??????, ???? ?????? ??????? ? ?????? ??????? ?????
    ???????? ?????.

    Feel freee to surf to my web page: ???????? ?????? ? ????????? ?? ?????????? ?????

  13. Cheap Paragis Tea is making in the province of Yunnan, which is also known as
    the “God’s Own Country” because of its high
    quality and wide variety of tea leaves. Its production and processing are not regulated by any government agency and are thus considered a hobby of the people, who are called gong
    fu or tung fu masters. Because of this, they have decided to produce their own version of
    Paragis Tea which can be enjoyed to its fullest by those who love it.

Leave a Reply