Suppose I have started vim like this:
vim foo bar
Now I decide that I want each of those files in its own tab. Is there a way to do that without exiting vim and adding the -p option to my command line?
feedback
|
|
When you start vim like that, you don't get a vim client, the text editor is using the terminal or cmd prompt - the two files are in two different buffers. Use
The %a is the active buffer. You can use If you have 2 files loaded & no tabs (yet), you can, If you want to always have buffers loaded into their own tabs, check out this article. | |||||||||||||
feedback
|
|
You wish to open a buffer in a new tab ? Split up the screen (Ctrl-W s), take up a window, and Ctrl-W T | |||||||||
feedback
|
|
1. Open two files in Vim. $ vim foo bar 2. Check the numbers of buffers. :ls 1%a "foo" 2 "bar" 3. Chain two commands: :tabnew | b 2 | ||||
|
feedback
|