- 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.
- Visual C++程序設(shè)計(jì)教程
- Java EE框架整合開發(fā)入門到實(shí)戰(zhàn):Spring+Spring MVC+MyBatis(微課版)
- JMeter 性能測試實(shí)戰(zhàn)(第2版)
- WSO2 Developer’s Guide
- Full-Stack React Projects
- 區(qū)塊鏈底層設(shè)計(jì)Java實(shí)戰(zhàn)
- Android系統(tǒng)級深入開發(fā)
- Julia高性能科學(xué)計(jì)算(第2版)
- Getting Started with React Native
- C++ System Programming Cookbook
- Hack與HHVM權(quán)威指南
- 3ds Max 2018從入門到精通
- JavaEE架構(gòu)與程序設(shè)計(jì)
- 從零開始學(xué)Unity游戲開發(fā):場景+角色+腳本+交互+體驗(yàn)+效果+發(fā)布
- Java EE輕量級解決方案:S2SH