- 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.
- Mastering Concurrency Programming with Java 8
- Learn TypeScript 3 by Building Web Applications
- Modular Programming with Python
- Java從入門到精通(第4版)
- Spring Boot+Spring Cloud+Vue+Element項目實戰:手把手教你開發權限管理系統
- 微服務設計原理與架構
- Mastering OpenCV 4
- Visual C++應用開發
- Java程序設計:原理與范例
- Python 3 數據分析與機器學習實戰
- JQuery風暴:完美用戶體驗
- ASP.NET求職寶典
- Apache Solr PHP Integration
- Android智能手機APP界面設計實戰教程
- Selenium Essentials