开发者

Remap "te" to "tabedit" in vim

开发者 https://www.devze.com 2023-04-08 12:41 出处:网络
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 somew

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

精彩评论

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