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.
精彩评论