Vim's :open does not tab complete, what does?

我们两清 提交于 2019-12-20 09:45:07

问题


Instead of tab completed file or directory names, I see ^I

:open ./lib/^I^I^I

Is there another command that would offer tab completion, or perhaps another solution?

I'm considering replacing the following mapping with something that would use buffers, but want to keep tab completion.

map <C-O> :tabnew ./

回答1:


That might be because :open is not the command you're looking for. Try :edit or :e for short. Also try :help :open and :help :e to see, what the commands do. :e has tab completion.




回答2:


Use :enew if you want to create a new empty buffer.

Use :edit filename if you want to edit a specific file in place of the current one.

Use :new if you want to create a new empty buffer in a new horizontal split window.

Use :split filename if you want to edit a specific file in a new horizontal split window.

Use :vnew if you want to create a new empty buffer in a new vertical split window.

Use :vsplit filename if you want to edit a specific file in a new vertical split window.

Use :tabnew if you want to create a new empty tab.

Use :tabedit filename if you want to edit a specific file in a new tab.


Use :help :command if you are unsure about its usage.



来源:https://stackoverflow.com/questions/17326627/vims-open-does-not-tab-complete-what-does

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!