1

When using VsVim, the key combination CtrlF is accupied by VsVim itself and if you know vim it basically scrolls you forward in your text for approximately one page.

enter image description here

So I started to wonder if there is any feature in VsVim which can replace the traditional Quick Find in Visual Studio. If I want to search for a key-phrase using / then I only get the finds in the current file and missing the good ol Quick Find functionality which you could set Current Project or the Entire Solution to find the matches of what you have searched in the files that you haven't even opened already but may contain the word you're looking for.

Any suggestion? Appreciate it.

Mehrad
  • 4,093
  • 4
  • 43
  • 61

4 Answers4

3

VsVim gives you control over what it handles and what you let VsVim handle. I suggest you simply tell VsVim not to handle CTRL-F and use the Visual Studio behavior. This can be changed in Tools -> Options -> VsVim -> Keyboard. If you still need the Vim behavior of CTRL-F, you can use PageDown, or you can use CTRL-D to scroll down about a half-page.

Keith Pinson
  • 7,835
  • 7
  • 61
  • 104
1

If VsVim is Vim, /foo is good for navigation but not really for searching.

To search for foo in the current file and display an actionnable list of results do:

:vim foo % | cw

To search recursively for foo in all *.py files under the working directory and display an actionnable list of results do:

:vim foo **/*py | cw

Vim doesn't know what a project is or what a solution is so I'm afraid you'll have to find your own abstraction for those things.

(edit)

So it looks like VsVim is not Vim after all, but maybe this entry in the FAQ will help you.

romainl
  • 186,200
  • 21
  • 280
  • 313
  • hahaha, yeah. `VsVim` is an add-on for `Visual Studio` which lets you use VIM consents on the editor. Thanks for the response though. – Mehrad May 22 '14 at 22:39
  • Yeah and `:vimgrep` is not currently implemented, and no one has requested it yet, so it doesn't look like it's on the docket at this time. – Keith Pinson Nov 06 '14 at 15:34
0

You can try this plugin for Vim: https://github.com/skwp/greplace.vim

Basically, it allows you to type in a search phases (with/without regex) and ask you for the files to search in.

Steven Yap
  • 188
  • 6
  • Unfortunately, this plugin will not work in VsVim until we make a lot more progress on implementing VimScript for it. – Keith Pinson Nov 06 '14 at 15:26
0

Ctrl+Shift+F will bring up the "Find and Replace" pop up window in which you can choose the scope of your search.