Ubuntu is not serving vim full packages for default. So, if you need to use advanced features of vim, just type like following
sudo apt-get install vim
Hey, M$ users. You can even use reference library like MSDN in vim as well. Just install man pages for development and press shift+k on symbol in vim. Then, you’ll see.
sudo apt-get install manpages-dev
And even use symbol search feature in vim also.
sudo apt-get install cscope
Just add following lines in your .vimrc which is stored in your home directory.
set csprg=/usr/bin/cscope if filereadable("./cscope.out") cs add cscope.out else cs add "your project cscope.out" endif set csverb
If your project is not supporting cscope through Make, then you can make a script on your own and locate it in your /usr/local/bin directory with executable permission. And execute that script in your top directory of your project. BTW, kernel project just supports cscope through Makefile. You can just issue “make cscope ARCH=…”
#!/bin/sh rm -rf cscope.* find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files cscope -i cscope.files
Enjoy your vim&cscope life.
Cheers,
| AMOLED has RGB color filter!? (0) | 2009/06/27 |
|---|---|
| Configuring your own vim (0) | 2009/06/09 |
| VIM & CSCOPE configuration for kernel development (0) | 2009/06/09 |
| If your Ubuntu (9.04 Jaunty Jackalope) laptop has problem with sleep-resume (0) | 2009/06/04 |
| MIPI CSI-2 layer overview (0) | 2009/06/03 |
| Getting started with Chrome on Linux (ubuntu box) (0) | 2009/06/01 |
Tag : vi, vi + cscope, vim + cscope, vim. cscope
Send me an instant message!