I want to open a .c file , that I found using cscope, in vim editor. Normally it opens in vi editor. I have made and edited vimrc file using the command -
vim ~/.vimrc
The following are the configuration that I have put into it.
1 syntax enable
2 set nu
3 set tabstop=4
4 set softtabstop=4
5 set cursorline
6
7
8 if has('cscope')
9 set cscopetag cscopeverbose
10
11 if has('quickfix')
12 set cscopequickfix=s-,c-,d-,i-,t-,e-
13 endif
14
15 cnoreabbrev csa cs add
16 cnoreabbrev csf cs find
17 cnoreabbrev csk cs kill
18 cnoreabbrev csr cs reset
19 cnoreabbrev css cs show
20 cnoreabbrev csh cs help
21
22 command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
23 endif
I found this configuration in a website. But still it isn't working. And also I dont know what most of these lines means.
So, what are the changes to be done ? And can someone explain me the meaning of these lines?