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: 244714 | 7 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: 63381 | 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: 67790 | 8 Comments »

Web Authoring with Vim

June 18th, 2007 toydi

In usual editing, to open a file with vim, we run the command: vim /path/to/file It is also possible to browse a directory using vim: vim /path/to/directory/ When we are inside vim, to save a file, we use the :write command, :read to read an existing file into current buffer; or using :tabnew /path/to/file to [...]

Posted in Network, Text Manipulation, vim | Hits: 38581 | 3 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: 72559 | 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: 46853 | 5 Comments »

Printing in vim: Using programs other than the default lpr

May 25th, 2007 Felix Leong

Printing in vim is as easy as entering the :hardcopy (or its shorthand equivalent :ha), that command is equivalent to creating a temporary Postscript file and passing it through lpr. But what if you want to modify the printing behaviour of vim? Say, printing 2 pages on a page using the a2ps command?* Luckily that [...]

Posted in vim | Hits: 86228 | 6 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: 53055 | 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: 40535 | 3 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: 67166 | 4 Comments »