문제

I am new to gvim. Now I am trying to use keyboard to simply go through/search the file and folders with minimal up(k) and down(j) operation, I try vim documentation but not quite understand the symbols

Any help is appreciated

도움이 되었습니까?

해결책

You might want to try netrw+gvim. In the menu for [Netrw]:[Explore] are four searches:

  • Filenames matching pattern :Explore */pattern
  • Filenames matching pattern, searching subdirectories: :Explore **/pattern
  • Files containing search pattern :Explore *//pattern
  • Files containing search pattern, searching subdirectories: :Explore **//pattern

(see :help netrw-starstar). Use :Nexplore and :Pexplore (or shift-down, shift-up mouse) to go to the next/previous file on the resulting search list, and use a [return] to enter the file.

For example: * :Explore **//xfile

다른 팁

You can use HML to jump to the higest, middle and lowest line.

You can use /foo<CR> to jump to a line containing "foo".

You can use line numbers: 12G.

And you can ask more specific questions. What exactly do you have a problem with? What did you try? How did it fail?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top