- Mastering Vim
- Ruslan Osipov
- 219字
- 2021-06-10 18:51:30
:e with wildmenu enabled
Another way to explore file trees is to use the set wildmenu option in your .vimrc file. This option sets an autocomplete menu to operate in enhanced mode, showing possible autocomplete options above the status line. With wildmenu enabled, type in :e (followed by a space) and hit Tab. This will bring up a list of files in the current directory, and you can use the Tab key to iterate through these and Shift + Tab to move backward (the left and right arrow keys perform the same function):
Pressing Enter will open the selected file or directory. The down arrow allows you to drill down into directory under cursor, and the up arrow takes you back up a level.
This also works with partial paths, and entering :e <beginning_of_filename> followed by a Tab key invokes wildmenu as well.
My .vimrc file has the following in it:
set wildmenu " Enable enhanced tab autocomplete.
set wildmode=list:longest,full " Complete till longest string,
" then open the wildmenu.
This allows you to autocomplete the path to the longest match possible (and display a list of possible completion options) on a first Tab press, and traverse through files with wildmenu on a second Tab press.
- Flutter開發(fā)實戰(zhàn)詳解
- Dynamics 365 Application Development
- Boost C++ Application Development Cookbook(Second Edition)
- SQL for Data Analytics
- 深入淺出Windows API程序設(shè)計:編程基礎(chǔ)篇
- Learn Scala Programming
- Visual Basic程序設(shè)計習(xí)題解答與上機(jī)指導(dǎo)
- 深度學(xué)習(xí):Java語言實現(xiàn)
- LabVIEW虛擬儀器程序設(shè)計從入門到精通(第二版)
- JavaScript應(yīng)用開發(fā)實踐指南
- Unity Character Animation with Mecanim
- TypeScript 2.x By Example
- Anaconda數(shù)據(jù)科學(xué)實戰(zhàn)
- PHP Microservices
- Head First Kotlin程序設(shè)計