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

Web Authoring with Vim

          0 votos

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

Posted in Network, Text Manipulation, vim | Hits: 16870 | No 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: 20493 | 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: 15516 | 5 Comments »

Printing in vim: Using programs other than the default lpr

* * * * * 1 votos

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

Posted in vim | Hits: 13201 | 4 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: 16362 | 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: 8611 | 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: 11765 | 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: 6044 | No Comments »