Let path = strpart(UpperPath, 0, match(UpperPath, "cscope.out$") - 1) Let UpperPath = findfile("cscope.out", ". If (executable("cscope") & has("cscope")) If somebody use gVim in the windows(like me use Winxp), a modified script for the _vimrc script maybe helpful as follow: " else add the database pointed to by environment variable Set nocscopeverbose " suppress 'duplicate connection' error Let path = strpart(db, 0, match(db, "/cscope.out$")) This tip provides the same "autoloading" functionality for Cscope. However, if you start Vim from say ~/proj/src/a/b/c/, while cscope.out is at ~/proj/src/, that cscope.out won't be loaded automatically.įor ctags, there is a nice trick: with the command :set tags=tags / Vim will look for tags file everywhere starting from the current directory up to the root. Tip 1668 Printable Monobook Previous Nextīy default, Cscope script adds cscope.out from Vim's current directory and from $CSCOPE_DB.
0 Comments
Leave a Reply. |