Live Chat!

vim taglist plugin for developers

* * * * * 1 votos

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: 11310 | No Comments »

vim with ctags for multi-level directory hierarchy

          0 votos

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: 15091 | 4 Comments »

perform grep and make in vim

          0 votos

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: 20492 | 1 Comment »

commenting your source code with combo keys in vim

* * * * * 1 votos

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: 15515 | 5 Comments »

Save typing using vi abbrevations

* * * *   1 votos

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: 16361 | 2 Comments »

vim tips, goto line

          0 votos

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: 8610 | 2 Comments »

disable text wrapping at vim

* * * * * 1 votos

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: 11764 | 1 Comment »

search next or backward and goto line tips for vim

* * * * * 1 votos

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: 6043 | No Comments »

vim with ctags

* * * * * 2 votos

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: 10279 | 4 Comments »

regex in vim to clear the trailing character

          0 votos

December 6th, 2006 mysurface

Sometimes, the file created at windows may tag alone the trailing character at the end of every line, where user press enter. It may shows as ^M. It is very irritating! to clear it off is very easy in vim.
:%s/\s*\r*$//
%s is global search, change effect on every lines, \s is space \s* is to search [...]

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