2009/1/31 Tony Mechelynck <[email protected]>: > > On 31/01/09 15:46, Dominique Pelle wrote: >> Lech Lorens wrote: >> >>> The attached patch makes it possible for the last argument in the >>> :cscope find [sgdctefi0-8] ... >>> command to be preceded by multiple spaces. >> >> But isn't being able to search for something beginning with a space a >> feature? >> >> For example: >> >> :cs find e foo >> :cs find e foo >> >> The first one searches for " foo" >> The second one searches for "foo" >> >> There is another old thread in vim_dev where this was discussed: >> >> http://groups.google.com/group/vim_dev/browse_thread/thread/cafcb4b1fc5fdb90 >> >> -- Dominique > > Hm. What would be the result of >). > :cs find e \ foo > or > :cs find e " foo" > > ?
No. :cs find e " foo" ... finds literaly " foo" i.e. will find <space>foo surrounded with double quotes. :cs find e \ foo ... finds lines which start with foo. I'm not sure whether that's documented but that's what I observe experimentally. You can try yourself by building a cscope DB on vim sources for example: $ cd vim7/src $ cscope -b -q $ vim :cs add cscope.out :cs help :cs find e ... -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
