0

I would like to be able to edit Foo.cs by partial name without using :prev or :first et cetera.

Foo.cs Bar.cs [Baz.c]s Qux.cs

I have tried :arge F* and Vim says: No match. I have also tried :arge *F*. How can I navigate directly to Foo using part of its name?

0

1 Answer 1

2

If the buffer is already opened, you can just type parts of the name using :b.

:ls
  1 #h   "Foo.cs"                       Line 1
  2  h   "Bar.cs"                       Line 1
  3 %h   "Baz.c"                        Line 1
  4  a   "Qux.cs"                       Line 1
:b F
:ls
  1 %a   "Foo.cs"                       Line 1
  2  h   "Bar.cs"                       Line 1
  3 #h   "Baz.c"                        Line 1
  4  h + "Qux.cs"                       Line 1
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.