use vim effectively

来源:互联网 发布:网络销售怎么做 编辑:程序博客网 时间:2024/05/21 10:15

mkdir ~/.vim_runtime
svn co svn://orangoo.com/vim ~/.vim_runtime
cat ~/.vim_runtime/install.sh
sh ~/.vim_runtime/install.sh linux

The vimrc can be template and you can modify to adapt to your custome casually.


using gid to search where the function is called :

three steps : 1 apt-get install id-utils 
                    2 mkid in sourcetree
                    3 modify vimrc , set grepprg=gid
Now you can search all you want to  fastly.


or use ctags + cscope:


find $(pwd) -name "*.cpp" -o -name "*.java" -o -name "*.h" -o -name "*.mk" >    cscope.files ( can be customized)
cscope -bkq -i cscope.files
ctags -R


Ctrl+R+W get cur word.



原创粉丝点击