开发者

Remap "te" to "tabedit" in vim

I've started using Vim recently, and so far my main issue is with the buffer. I miss my Mac OS-style drawer with all open docs. I recently learned ab开发者_开发技巧out tabs, and I think that's somewhat of a good solution, at least for when I have only a few files open. Opening a new tab is :tabe <filename>. Is there a way to remap that to :te <filename>?


The first thing that came to my mind was a custom command.

command! -complete=file -nargs=1 Te tabedit <args>

Use the command: :Te <filename>

Please see the comments by Peter Rincker in this post.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜