Gnu Global, the programmer’s friend

May 25th, 2010 mysurface

GNU Global (gtags) is a source code tagging system similar to ctags but more than that. I always use vim as my c/c++ source code editor, and using ctags to helps me travels from function call to function definition. I do write a post indicates how does ctags works with vim. The reason I shifted […]

Posted in Developer, global, gtags, gvim, vi, vim | Hits: 326733 | 11 Comments »

vim taglist plugin for developers

June 1st, 2008 mysurface

Taglist plugin provides vim to support source code browsing capabilities at sidebar. When you enable taglist, sidebar windows will be listing functions, classes, structures, enumerations, macro definitions and other parts of a source code file as shortcut. Shortcut will jump you to the particular portion of codes within a single page. The taglist may have […]

Posted in vi, vim | Hits: 93235 | 4 Comments »

vim with ctags for multi-level directory hierarchy

April 24th, 2008 mysurface

I have wrote a post regarding vim with ctags, introduces how ctags allows you to travel across source codes, searching for function, objects, variables definition. To jump from function call to function definition, I usually do ctrl+] in vim. It should works fine as it should have already configured by default from most of the […]

Posted in ctags, Developer, Text Manipulation, vi, vim | Hits: 116595 | 11 Comments »

perform grep and make in vim

June 15th, 2007 mysurface

We can do grep and make in vim, the advantage of doing that in vim compare to terminal is you can use the result to track the error and warning for make or goto the line and files of the grep results. How to make in vim? :make In order to make, the current directory […]

Posted in grep, make, Text Manipulation, vi, vim | Hits: 104404 | 3 Comments »

commenting your source code with combo keys in vim

May 31st, 2007 mysurface

When I saw my colleague commenting his lines of source code with some special combo key in VC++, I would like to do that in vim too. Vim is great that it is highly flexible to extend features with your own define key combos. Vim by default bundle with many default key bindings, fortunately you […]

Posted in Text Manipulation, vi, vim | Hits: 69846 | 5 Comments »

Save typing using vi abbrevations

May 11th, 2007 Felix Leong

Do you find yourself typing some long text too often that it’s getting tiresome (especially when it comes to hard to remember and long email addresses)? Or that you are so bad at remembering today’s date that you have to fumble through the calendar before you are able to type away? If you are using […]

Posted in vi, vim | Hits: 78511 | 2 Comments »

vim tips, goto line

February 10th, 2007 mysurface

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 […]

Posted in Misc, Text Manipulation, vi, vim | Hits: 70588 | 13 Comments »

disable text wrapping at vim

January 3rd, 2007 mysurface

vim wrapping the text by default. When a line is exceed the width of your viewable screen, the text will be wrap to next line. Sometimes, it is messy. Especially when you read the log file with many columns. To disable wrapping in vim :set nowrap You can write that to ~/.vimrc, so that it […]

Posted in Text Manipulation, vi, vim | Hits: 105774 | 11 Comments »

search next or backward and goto line tips for vim

December 16th, 2006 mysurface

To search in vim is very simple, even a noob vim user know that, /keyword To search for next? simply follow by pressing n for next keyword match point and search backward with shift+n or N. Wanna highlight the keyword and search for next keyword match point? Place your cursor at the desire word, and […]

Posted in Text Manipulation, vi, vim | Hits: 58187 | 3 Comments »

vim with ctags

December 10th, 2006 mysurface

If you are c/c++ programmer and vim user, maybe know ctags. Most of the time, source code are distributed to many folders and each of them consist of numbers of .cc/.c and .h. Sometimes to search the definition of a function, class, enums etc by using “/” is inefficient. ctags allow fast jumping to function […]

Posted in ctags, Developer, ln, vi, vim | Hits: 242691 | 29 Comments »