I usually go between files on my database with cscope index using
:cscope find f <filename>
I'm trying to determine a key combination so that I don't have to type ": cscope find f" every time. By clicking this shortcut, you will receive an input prompt into which I will enter part of the file name in the cscope database. If there are several files, it will display a list of files from which I can select the file to which I want to go. I still have so many, but since I donβt own VIM scripts at all, I canβt complete this. (which I still encoded from another question, thanks to Eelvex ).
Can someone fix the below script for me? I get numerous errors while I try to use this shortcut
function! GetPat() call inputsave() let filename = input("Enter filename: ") call inputrestore() return filename endfunction map ` :cscope find f '.GetPat().'<CR>
source share