cscope
opens my files in vi
. Is there a way to change it so that it opens files in vim
instead ?
Edit: I tried:
export CSCOPE_EDITOR=vim
For some weird reason, if I type :help
on the file opened, it shows vim help
which indicates it is opened in vim
but it doesn't seem to read my .vimrc
. How can I make it read my .vimrc
?
Edit 2: Machine/tool info
[user@machine] $ printenv | grep -i cscope
CSCOPE_EDITOR=vim
[user@machine] $ vim --version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jul 10 2012 08:48:09)
Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47, 50-56, 58-64, 66-73, 75, 77-92, 94-107, 109, 202, 234-237
[user@machine] $ cscope -V
cscope: version 15.5
EDITOR=vim cscope
– GorgoneionEDITOR=vim
andVISUAL=vim
set in my environment, andcscope
usesvim
and runs with my setup. However, unsetting either or both also leaves it runningvim
, so that's not conclusive. Looking at the strings in the program,EDITOR
appears butVISUAL
does not; there is alsoCSCOPE_EDITOR
. All of which is not much help. Did you buildcscope
? Which version are you running (-V
; I'm running 15.7a that I built on a Mac)? I do haveEXINIT
set, butvim
is being run with settings that are not inEXINIT
. – Flavine:h cscope
and:h :cscope
– Arty