Live Chat!

Gnu Global, the programmer’s friend

1 votos Vota!!

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

Posted in Developer, global, gtags, gvim, vi, vim | Hits: 46783 | 3 Comments »

vim taglist plugin for developers

3 votos Vota!!

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

Posted in vi, vim | Hits: 38980 | 3 Comments »

vim with ctags for multi-level directory hierarchy

0 votos Vota!!

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 Developer, Text Manipulation, ctags, vi, vim | Hits: 31995 | 5 Comments »

perform grep and make in vim

0 votos Vota!!

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 must contain a [...]

Posted in Text Manipulation, grep, make, vi, vim | Hits: 41197 | 1 Comment »

commenting your source code with combo keys in vim

1 votos Vota!!

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

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

Save typing using vi abbrevations

1 votos Vota!!

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 vi, [...]

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

vim tips, goto line

0 votos Vota!!

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 tips examples [...]

Posted in Misc, Text Manipulation, vi, vim | Hits: 19043 | 2 Comments »

disable text wrapping at vim

1 votos Vota!!

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 will disable [...]

Posted in Text Manipulation, vi, vim | Hits: 23721 | 1 Comment »

search next or backward and goto line tips for vim

1 votos Vota!!

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 press shift 8(8 not [...]

Posted in Text Manipulation, vi, vim | Hits: 13810 | No Comments »

vim with ctags

6 votos Vota!!

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 Developer, ctags, ln, vi, vim | Hits: 51786 | 12 Comments »