remotesplit for cscopePosted: May 16, 2005 | Author: tech0x20 | Filed under: Uncategorized | Comments Off on remotesplit for cscope
On a multiuser environment, I added the ‘ps -fu’ bit to detect a gvim session, slightly more fool-resistant than just checking the result code of the –remote-send call.
ps -fu $LOGNAME | grep -v grep | grep gvim 2>/dev/null
if [ $? -ne 0 ]
gvim –remote-send “<ESC>:sp $CSCOPE_ROOT/$2<CR>:0<CR>:$1<CR>:-1<CR>” 2>/dev/null